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
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
This article focuses on the use of the Perl split function, and a very useful function in Perl is the Perl split function-dividing the string and putting the segmented result into the array. This Perl split function uses a regular expression (RE)
This article will focus on the usage of the Perl split function. A very useful function in Perl is the Perl split function, which separates strings and puts the split results into arrays. This Perl split function uses a rule expression (RE), which
Perl Arraysa Perl array is a list variable that stores scalar values, and variables can be of different types. array variables begin with @. Access array elements are read using the $ + variable name + [index value] format. 1. Creating an array1.
Reference
Common Perl Command Line options
Common unix Commands: perl implements sed awk tr nl
Perl, sed, awk, tr, grep, nl, and other common commandsSed
Task
Sed
Perl
Replace12WithTwelve
sed 's/12/twelve/g'
perl -pe '
Use in common to perl,python,awk,r, although Java,c,c++,vala also learned but do not like, you say how to do.It seems the life of the script.Perl@rray = split/pattern/, STRING, LIMITYou can see that split consists of 2 parts (String,pattern) and an
One, List
A list is a sequence of values enclosed in parentheses that can be any value or NULL, such as: (1, 5.3, "Hello", 2), empty list: ().Note: A list containing only one numeric value (for example: (43.2)) is different from the value itself
14th Chapter PERL5 Packages and modulesby FlamephoenixFirst, Require function1. Require functions and sub-Libraries2. Specify the Perl version with requireSecond, the package1, the definition of the package2, switch between the package3. Main
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.