Discover perl execute shell command and get output, include the articles, news, trends, analysis and practical advice about perl execute shell command and get output on alibabacloud.com
I. Data Types(Data type):
Perl has four data types: Scalar (variable), Scalar Array (Array), Hash Array (Hash), and References (pointer ), it seems to be rare, but it is more than enough to use it. Especially when writing Perl programs, you do not
one. DataType (data type ):Perl's data types are roughly four: Scalar (variables), Scalar Array (array), hash array (hash), References (pointer), but they seem to be small but more than sufficient. In particular, you can write a Perl program without
Learning Perl 4ed Reading Notes
Chapter2 scalar data1. Numbers. All data (INT, float) is of the double type in Perl. Of course, sometimes Perl also uses integer to represent int internally, because this can improve the running speed of the program,
'), System, and exec in Perl
In Perl, the check mark (''), system, and exec are used to execute the command order. This article will show us how they are used, approached, and differentiated.
I. utilization methods
1. check mark ('')
First of all,
What is a shell scriptShell scripting (English: Shell script), also known as shell Command Draft, programmatic script, is a computer program and text file, the contents of a series of shell commands, through the Unix shell literal translation of its
When we talked about the number of scripts being executed in CU a few days ago, we found that we knew little about how to execute commands in shell... thank you for your advice! In addition to being inaccurate in some places, his statement is
What is a shell script sampleLet's look at an example:#!/bin/shcd ~mkdir shell_tutcd shell_tutfor ((i=0; iExample explanation
Line 1th: Specify the script interpreter, here is the interpreter with/bin/sh
Line 2nd: Switch to the current
When to use the shell
Because the shell appears to be a common feature between UNIX systems, and has been standardized by POSIX. As a result, the shell script can be applied to many systems as long as it is written "attentively". Therefore, the
2.2.1, Shell Introduction
(1) Shell can be understood as a software system to provide user operation of the command line interface, it can be said that he is a way of human-computer interaction
(2) We can use the shell and the operating
Part I Programming Perl 1 Perl Data Types 1.1 Funny Characters
Type
Character
Example is
a name for:
Scalar
$
$cents
An individual value (number or string)
Array
@
@large
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.