Enable Perl before compiling Vim;
Use the Perl interface ** Perl-using **: Perl **: Pe *: PE [RL]{cmd}Run the Perl Command{cmd}. The current package is "Main ". : PE [RL] {endpattern}{script}{endpattern}Execute the Perl
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 '
Regular expressions are a major feature of the Perl language and a bit of a pain in the Perl program, but if you have a good grasp of him, you can easily use regular expressions to complete the task of string processing, of course, in the CGI
Thanks to aka and the author.
Regular Expressions in PerlThree forms of regular expressions
Common patterns in regular expressions
The 8 major principles of regular expressions
Regular expressions are a major feature of the Perl language and a
9 Regular Expressions in PerlThree forms of regular expressionsCommon patterns in regular expressions8 Principles of Regular expressionsRegular expressions are a major feature of the Perl language and a bit of a problem in Perl, but if you can
As we all know, Perl is very powerful in processing strings, and Perl (Practical Extraction and Reporting Language) is also very powerful in processing formats. Here we start to learn some Perl formats and string processing.
Familiar with the three
Chapter 2: References
References are declared as scalar types (named variables starting with $), and reference is obtained using the \ operator.
Modifying the referenced variable is equivalent to modifying the reference pointing to the
This is notes from reading the "Object Oriented Perl programming ".
Elements of the @ _ array are special in that they are not copies of the actual arguments of the function call. rather they are aliases for those arguments. that means that if
[File handle]
$| If Non-zero, force clear buffer after write or print operation on the currently selected file$% the current page number of the currently selected file handle$= the current page length of the currently selected file handle$-the
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.