This article is mainly for PWS and IIS5.0, ASP program in the PWS and IIS5.0 environment are supported, for Apache Server Software configuration This forum has been addressed, not discussed here.
First, PWS configuration ActivePerl, so that PWS
Because Perl's compile-and-install is a hassle, it's a lot of people. I specifically made the latest Perl 6 a direct installation of the RPM package on CentOS 6. Just install the following three things.
The code is as follows
Copy
If there is such a sequence:1 21 22 11 31 41 54 1We need to get the following results:1 31 52 14 1Then, use the following Perl script to implement it.Code One:
Copy Code code as follows:
#!/bin/perl
Use strict;
Use warnings;
my
program annotations in Perl: Single-line and multiline comments(i) Single-line Comment:Lines beginning with # are considered by Perl as annotations. But with one exception, the first line of the Perl program begins with a #, and he specifies the
Learn to record
Copy Code code as follows:
#!/usr/bin/perl-w
Use strict;
The values of print ' @a @b @c @d are 1 2 3 ', ' \ n ';
My @a = (1..3);
Pop (@a);
The value of print "\@a is the @a,pop to take off the rightmost value of the
Method in a cgi.pm (routines) call
1. CGI.PM implements two methods of use, namely object-oriented approach and traditional Perlmodule method.Object-oriented approach:
Copy Code code as follows:
#!/usr/local/bin/perl-w
Use CGI; #
It is believed that many people who are beginners in programming will have difficulty in language selection. Frankly speaking, I think most people are afraid that their choice of language will be eliminated or not widely used, today I would like to
HashA hash is a data structure that is similar to an array in that it can tolerate any number of values and can be used on demand, whereas he and the group differ in the way the indexes are indexed and the arrays are indexed by numbers and the
I have been using Perl for my recent work.Program. Although Perl is not my learning direction, I still summarize some knowledge points I encountered at work for future use.
1. Define a hash (hash or associated array)% For = ("AAA" => "001 ","BBB" =
CopyCodeThe Code is as follows :#! /Usr/bin/perl
#
# Use grep map to obtain the Intersection Set and supplement set of the two lists
#
Use strict;
My @ A = ("A", "B", "C", "D", "E ");
My @ B = ("B", "g", "F", "E ");
Print "list a data: @ A \
I. Causes of danger
1. WebProgramIt's easy to get started, and you can write it after simple training. The level of programs written is naturally uneven.
2. Many people do not have security awareness. You have no idea about the concept of "SQL
Recently, Perl has been re-learned due to project needs.
To be honest, Perl makes me love and hate. Love it because it is really nice to write your own code. It is the language with the least code and the fastest speed.
Hate is because it is
Perl "glue" can combine code from various applications or languages. Perl can write common scripts, CGI Modules can be used to write web applications, and DBI can be used to access various databases. In addition, Perl can stick applications of
I. Introduction
The pattern refers to the character of a specific sequence in the string. The backslash contains:/DEF/That is, the pattern def. Its usage is as follows: Use the function split to divide a string into multiple words in a certain mode:
The default Perl debugger is the perl interpreter, and a GUI debugger.Generally, telnet is used to access the server during development. This document describes the usage of the default command line debugger.
Start the Perl interpreter with the-d
1) The default INC is as follows:
Copy codeThe Code is as follows: @ INC:
C:/Perl/site/lib
C:/Perl/lib
2) set the environment variable PERL5LIB to add it to INC. For example:
Set perl5lib = c: \ perllibs
After perl5lib is set,
Copy codeThe
Sometimes we execute a script, because some programs in the script are suspended and time-out, which affects our judgment on the next step. At will, it is necessary to set the timeout settings for functions and processes so that they can return a
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.