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
Perl + fastcgi + nginx Build
Nginx + fastcgi is the most popular environment in PHP, then Perl will also have fastcgi it, of course, Today to build the next Nginx Perl fastcgi. Performance is no less than PHP, but now the popularity of Web programs
File: The Basename module is used to extract the directory, File name, And Suffix in the File path.
This example shows how to obtain the suffixes of all files in/home/topgkw. The directory returns a null value.
For detailed usage of this module,
The File::basename module is used to extract directories, filenames, and suffixes from the file path.
This article introduces this example to get all the file suffixes in the/home/topgkw, where the directory returns a null value.
The detailed usage
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
There are several prompt variables to mention when the color of the terminal is mentioned under the shell:
PS1: The default prompt, that is, after the remote boarding system, open the terminal, we see the familiar prompt every day;
[Root@vps ~]
There are too many things on the computer (more than 300 GB space, as well as many things on the mobile hard disk, computer and hard disk are repeated), and I always want to clear it. This kind of active technology is not very high, the physical
Perl class is a Perl Package First, create a package file named cocoa. PM (the extension PM is the default extension of the package, meaning perlmodule ). A module is a package, and a package is a class. Before doing other things, add the line "1;".
Author: A Hui http: farmerluo. googlecode. how to install comfilescheck_redis.pl: When the script uses the perl Redis database, you must first install this: # perl-MCPAN-eshell # installRediswgethttp: farmerluo. googlecode.
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.