Reference: http://shouce.jb51.net/perl5/Web site environment configuration: http://www.jb51.net/article/74005.htm
The basic syntax of Perl http://www.jb51.net/shouce/Perl.htm
Preface: What is Perl, and what is it used for? Perl's original designer'
1. Simple Variables
==============
1. Integer$ X = 123456;Perl stores integer data in floating-point registers. In fact, integer variables are treated as floating-point numbers in Perl, but they are only a special column of floating-point data.The
First, open, close the file
Syntax is open (Filevar, filename), where Filevar is a file handle, or the program used to represent a file code name, filename is filename, its path can be relative path, can also be absolute path.
Copy Code code
In Perl, you can use the open or sysopen functions to open files and perform operations. Both functions use a file handle (that is, a file pointer) to read and write files.
The open function is used as an example:
1. Open and Close files
The return
First, open, close the file
Syntax is open (Filevar, filename), where Filevar is a file handle, or the program used to represent a file code name, filename is filename, its path can be relative path, can also be absolute path.
Open (FILE1, "file1");
Operators and meanings of file tests in perl
Test file permissions:
-R files or directories are currently (valid) readable for users.
-W files or directories are writable to current (valid) users.
-X files or directories are executable to (valid)
A file has an owner that indicates who created the file. Also, the file has a group number that represents the group to which the file belongs, typically the group to which the file owner belongs.If it is an executable file, at execution time, the
The day station is going to be a complete day. Often we can take the server Web services, but is updated than the Western reporters also faster than the administrator of the intranet infiltration of the seeds in the bud of the right to kill. The
FC5 + openwebmail installation-Linux Enterprise Application-Linux server application information. The following is a detailed description. I. Required software packages: (check for missing software packages installed 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.