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
Both Linux and perl are free software. it is amazing to combine them. you can install perl by following these steps, and perl will be able to sing in linux. 1. get the latest version
Both Linux and perl are free software. it is amazing to combine
Built-in variable $_:Let's take a look at an example:
Copy Code code as follows:
#!/usr/bin/perl-w
@array = QW (a b c d);
foreach (@array) {
Print $_, "";
}
The role of an example is to define an array and print out the
Article Title: how to install Perl and Its modules in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open
The first time I came into contact with Perl was in February October 2008. At that time, due to project reconstruction, I needed a lot of text operations, so I picked up the Perl language "text operations as my mission. Of course, the famous llama
Install perl in linux-general Linux technology-Linux programming and kernel information. For details, refer to the following section. Both linux and perl are free software. It is amazing to combine them.
Follow these steps to install perl in linux.
1. Move through the directory tree.When the program runs with the current working directory as the starting point of the relative path, you can use the chdir operator to change the current directory:chdir " / etc " die " Can ' t chdir to/etc:$! "; #
This post compares the three methods of folder traversal.
1. Use File: Find;
2. Recursive traversal. (The traversal function is LSR)
3. Use Queue or stack traversal. (The traversal function is lsr_s)
1. Use File: Find[Copy to clipboard] [-]
Code:#!
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.