As we all know, Perl is very powerful in processing strings, and Perl (Practical Extraction and Reporting Language) is also very powerful in processing formats. Here we start to learn some Perl formats and string processing.
Familiar with the three
first, open, close the file
The return value of open is used to determine whether the operation that opened the file succeeds, returns a value other than 0 when it succeeds, and returns zero when it fails, so it can be judged as follows:if (Open
Process processing functions
1. Process Start functionFunction name EvalCall Syntax eval (string)The commentary considers a string as a Perl statement execution.When executed correctly, the system variable $@ is an empty string, and if there is an
Perl Common function set 2
I. Process processing functions1. Process startup FunctionFunction Name evalCall the syntax eval_r (string)The description regards string as a Perl statement execution.After the command is correctly executed, the
I. Process processing functions
1. Process startup Function
Function Name eval
Call the syntax eval (string)
Describe the stringPerlStatement execution.
After the command is correctly executed, the system variable $ @ is an empty string. If an error
Source:Use of the map function of Perl:GrammarMap EXPR, LIST of which there is,Map BLOCK LIST None of this,Define and useExecutes expr or block on each element in the list, returning a new list. For each of these iterations, the values of the
1. $ position =Index(String, substring, skipchars );
This function returns the position of the substring in the string. If the substring does not exist,-1 is returned. The skipchars parameter is an optional parameter, indicating the number of
Server-side scripting technology is a very useful thing, combining it with client script technology to create a very powerful page. It seems like a long time ago, which version (appears to be the WWW edition) discussed ASP to the point of full swing,
Chinese string manipulation function
The string manipulation functions in PHP3.0 are more important, as follows:
(1) echo,print,printf,sprintf
Used for output strings. If a variable name is substituted in the string, it is replaced with its value.
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.