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
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
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
24 hours of Perl programming course questionsI. multiple choice questions1. Which of the following strings is incorrectly defined ()(1) 'Thank you'(2 )""(3) "A" friend "of yours"(4) "A/" friend/"of yours"2. Which of the following statements is
Perl is generally considered to be the abbreviation for practical extraction and report Language, a language evolved from C and sed, awk, Unix shell, and other languages. It was originally invented and implemented by the linguist Larry Wall. Perl is
GrammarThere are only two ways to create ' references ', and they are two.
Creating references
Create Rule 1If you add a '/' number in front of a variable, you get a ' reference ' to the variable.
$aref =/@array; # $aref Keep a ' reference ' to
Windows2000 + Apache + MySql + PHP3 + PHP4 + PERL installation and usage summary www. 1000script. com2002-9-31000script professional script Windows2000 + Apache + MySql + PHP3 + PHP4 + PERL installation and use of summary (a) here must be a lot of
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.