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
Reprinted: http://blog.csdn.net/jallin2001/archive/2009/11/13/4808618.aspx
The regular expression character set is often used to extract or exclude Chinese characters from a string. However, this is very troublesome and the effect is not very
Transfer from Forum:
Http://club.topsage.com/thread-2468696-1-1.html
Perl starts to use utf8 encoding internally to represent characters starting from 5.6. That is to say, there should be no problem in processing Chinese characters and other
Perl Arraysa Perl array is a list variable that stores scalar values, and variables can be of different types. array variables begin with @. Access array elements are read using the $ + variable name + [index value] format. 1. Creating an array1.
Perl has begun to use UTF8 coding internally to represent characters from 5.6, meaning that the processing of Chinese and other language characters should be completely free of problems. We just need to take advantage of the Encode module to give
Perl is an abbreviation for practical Extraction and report Language, which can be translated as a "utility statement extraction language".Perl Syntax Basics:(1) Perl programs consist of statements and statements(2) Perl program execution from top
Chomp and chop are all characters used to remove the tail of a string variable, but they have their own differences.
The Chomp function works on a variable, and this variable contains a string. If there is a newline character at the end of the
Single-line comment and multi-line comment syntax in Perl
This article mainly introduces single-line and multi-line annotation syntaxes in Perl. It also describes the single-line and multi-line annotation syntaxes in other common programming
As with most other programming languages, Single-line comments in Perl also begin with a #, such as:
Copy Code code as follows:
#print "hello,world!";
But multiline annotations, different languages have different ways of
This article mainly introduces the single-line annotation and multiline annotation syntax in Perl, and also explains the single-line annotation and multiline annotation syntax of other common programming languages, and the friends who need it can
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.