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
Basic usage # initialize % H as an empty array % H ={}; # use an array to initialize % H as a => 1, B => 2% H = ('A', 1, 'B', 2); % H = ('A' => 1, 'B' => 2); # If the key is a string, % H = (a => 1, B => 2) can be omitted. # Use {} to access print "$
Some of the most critical aspects of a hash table are:
Access via key (calculates key by hash function)
Mapped to data structures (the storage structure of the hash table itself)
Processing of mappings (conflict or collision
Perl is a very useful language that can be used to do a lot of things. However, it is only a language, mastering Perl, you just mastered a small piece of knowledge in the field of computer. Before you learn Perl, be clear about your learning
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
Program scripts in the process of running, always encounter such a problem, we will anticipate some problems and prepare them for processing code, and some unpredictable. The good program should be able to deal with as many of the possible anomalies
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.