Perl's original designer was Larry Wall (Larry Wall), which was published on December 18, 1987. Perl borrows the features of C, sed, awk, shell scripting, and many other programming languages. Larry Wall Published version 1.0 of the Perl scripting
'), 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,
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
PHP provides a large number of functions for executing external commands, including shell_exec (), exec (), passthru (), and system (). These commands are similar, but provide different interfaces for the external programs you run. All these
All of these commands derive a subprocess that runs the commands or scripts that you specify, and each child process captures them when the command output is written to standard output (stdout).
shell_exec ()
The shell_exec () command line is
Interactive programs usually require users to manually complete some operations, which often becomes an obstacle in system management automation and test automation. The least CT language that appeared on Unix can be used to interact with command
All of these commands derive a subprocess to run the command or script that you specify, and each subprocess catches them when the command output is written to standard output (stdout).
shell_exec ()
The shell_exec () command line is actually only
Before reading this article, please read the following question:Title 17:read The following JavaScript code:var sometext= "web2.0. net2.0";var pattern=/(\w+) (\d) \. (\d)/g;var outcome_exec=pattern.exec (Sometext);var outcome_matc=sometext.match
Php provides the system (), exec (), passthru (), shell_exec () functions to call external commands. although these commands can execute shell commands in linux, they are actually different: system () outputs and returns the last shell result. Exec (
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.