There is an instance where Perl reads a pattern from the configuration file, which has a combination of shell commands to get current information about Linux, and the entire pattern is complete after getting the return value of the shell
1 shell echo command will automatically add line breaks
2. $? Accept exit return values
3. The variable is equal to 'execute script', and the obtained value of the variable is the value output from the script to stdout.
Example:
1. Perl
Code: Http: /xxxxx/cgi/perl-cgi.cgi? Name = itech & url = itech.cnblogs.com & p1 = test1
#
! /Usr/bin/perl-WT# Shoshould use strict and warnning
Use Warnings;
Use Strict;
Use CGI;
#
To debug Error
Use CGI: carp QW
I have been engaged in some technologies and languages recently. I don't have time to update this place ..
Some time ago, it took a long time to learn. net3.0, 3.5, and other related things, including LINQ and lamabda... when reading these
ArticleDirectory
Refer:Http://www.willmaster.com/library/manage-forms/using_perl_to_submit_a_form.php
Http://www.oschina.net/code/snippet_12_854
Sometimes you need to call the existing CGI interactively in Perl to
Http://xerces.apache.org/
TheApache xerces ProjectCurrently consists of the following sub-projects, each focused on the development of XML parsers and related components in varous ages:
Apache xerces C ++-A processor for parsing, validating,
Three Regular ExpressionsCommon pattern in Regular Expressions 8 principles of Regular Expressions
Regular Expressions are a special feature of the Perl language and also PerlProgramBut if you can master it well, you can easily use regular
When processing text, we often encounter the following situation: we need to compare the two lines of text and then output them selectively. By default, only one row can be read at a time in the while () {do something} block. Here, I will give a
Perl is often used to process files in CSV format. Such files are similar to two-dimensional arrays, so operations on two-dimensional arrays are actually performed.For such a row and column table, we often need to sort by a column or by a column
REST: Neo4p-PERL version of "OGM" | Neo4j Chinese site-world's leading graph database
-->
REST: The Neo4p-PERL version of "OGM" was published in October 21, 2012 by neo4j
This is a guest post by Mark A. Jenkins, a DC area bioinformatics
The eq operator enforces the string context and treats its operations according to the string. = The operator forces the value context.
In rare cases, there is no suitable type operator, and you may need to explicitly force context. Force the value
In linux, we often use a program that requires adding parameters. Now let's take a look at the Getopt: Long module in perl, which is much more powerful than the array directly using @ ARGV. I want to know that there are two types of parameters in
Copy codeThe Code is as follows :#! /Usr/bin/perl
# Use strict;
Open (FILE1, "C:/Perl/BX/BX-Users.csv ");
Open (FILE2, "C:/Perl/BX/BX-Books.csv ");
Open (FILE3, "C:/Perl/BX/BX-Book-Ratings.csv ");
Open (result1, "> C:/Perl/BX/BX-Users.txt
With the in-depth development of network security requirements, network-based intrusion detection technology has become an important and interesting research direction. The best way to learn NIDS is to write an NIDS program by yourself, in addition
For example:
Copy codeThe Code is as follows: unless ($ fred = ~ /^ ([A-Z _] \ w * $/I ){
Print "The value of \ $ fred doesn't look like a Perl identifier name. \ n ";
}
Using unless means that either the condition is true or a block of code is
How to generate exe for your PERL script ?, Generateperl
The way I am using is PAR Packer.
1. Downloadmodule PAR Packer:
Http://search.cpan.org /~ Rschupp/pars-packer-1.024/lib/PAR/Packer. pm
2. InstallPAR Packer:
2.1Unzipthe *. tar
2.2Go tothe
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service