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
About the origins and characteristics of Perl and Python
Perl is the abbreviation of practical extraction and report Language, created by Larry Wall in 1987, originally designed to facilitate the processing of reports on UNIX, and has become a fully
1. List and array. The list mentioned in this book is a data structure. array is the data type used to store the list in Perl. In most cases, these two words can be exchanged, meaning the same. Unlike C, the Perl array does not need to define the
What is Perl?
Perl is a free and open-source scripting language created by Larry Wall. This language is mainly intended for practical and rapid development,
Structured Programming is incompatible with the popular object-oriented programming.
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
transferred from: http://perl.apache.org/docs/general/perl_reference/perl_reference.html
Use (), require (), do (),%inc and @INC explained
The @INC array
@INC is a special Perl variable which is the equivalent of the shell ' s PATH variable.
From: http://perl.apache.org/docs/general/perl_reference/perl_reference.html Use (), require (), Do (), % INC and @ INC explained
The @ INC Array
@ INCIs a special Perl variable which is the equivalent of the shell'sPathVariable.
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
The pop operation takes the last element of the array out and returns:@array =5..9;$fred =pop (@array); # $fred Get 9, @array now (5,6,7,8)$barney =pop@array; # $barneygets 8, @array now (5,6,7)Pop@array; # @array Now (5,6) (7 is discarded)In 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.