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.
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
1. Length of the array:
If you assign an array variable to a scalar variable, the length of the array is assigned to the scalar variable:
$ A = @ array; # The length of the array @ array is stored in the scalar variable $ A, that is, the number of
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
1. Differences and relationships between Shell and PerlPerl is full of 10 thousand gold oil. It has implemented the functions of various system commands from its own interior, which is much more
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
I. List
The list is a sequence of values contained in parentheses. It can be any value or empty, for example: (1, 5.3, "hello", 2), empty list :().
Note: The list containing only one value (for example, (43.2) is different from the value itself (I
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.