You can download a Perl language interpreter first, download the. msi suffix file (your own Internet load one installation package), double-click the mouse to run it, this is a WindowsInstaller packge format installation package, all the way next
Asp.net/perl.net Database Access Example
One of the features of the. NET Framework is it ability to handle multiple languages. Third party compiler vendors can create and implement a compiler targeted for the. NET Runtime. In fact, over the course
The types of characters included in the build password can be controlled by parameters
#!/usr/bin/perl use strict;
Use warnings;
Use GETOPT::STD;
Sub Show_help {print "useage:\n";
print "newp-aansl\n";
Print "-a\t\t The password
"High watermark" algorithm: After the flood, the last wave subsided, the high waterline will indicate the highest water level seen.Here's a look at the "high watermark" algorithm used in Perl.
#! /usr/bin/perl;
Use UTF8;
Sub Max {my
To be honest, this thing is a bit of a toss of people, mainly in the book's statement is very obscure, in fact, it is not difficult to understand.Our, "Limit your name to a certain scope," in fact, it is explicitly declared a "global variable",
1. When chomp without parameters, the default parameters are used and the $_ operation is done.
2. Array @array ... Available $array[number] references. $ #array. Represents the number of indexes in an array.
3. $! contains error messages;
4. The
When you first started to learn Perl, write the program, ready to wait for the results output, the result of double click, see the Screen flash, and then nothing. There is no chance that you can see the results of the output.
How to solve this
Copy code code as follows:
#!/usr/bin/perl
My%scyjm;
Open (Contacts, "F:\\perl\\f.txt") || Die ("Can not open the file!");
while ()
{
Next if/^#/; #if ($_=~/^#/'s shorthand
; chomp;
My
For business needs, to query the customer's IP address, will be part of the region's customers filtered out, began to think of the use of IP database, found that the difficulty of reading the pure database for me some of the big, and my current time
An array is an unordered list variable that stores scalar values.Array variables begin with @. Access array elements are read by using the $ + variable name + [index value] format as follows:#!/usr/bin/perl @names = ( "google" , , "Taobao"
Chapter II, scalar dataScalar (scalar): numeric or stringNumbers are saved in the Dobule type, no integers, and can be inserted into the underline for easy reading123456789 and 123_456_789 show the same effect.Supports other binary integer
A skin-fruit game is a fire.It's estimated that many people want to blackAccidentally found a fishing station:http://ppgpergame.com/Fishing User name and passwordAfter grabbing the packet, the discovery data is sent to: http://ppgpergame.com/db.asp
Test file when found that the output of Chinese is garbled, so learned a bit of Perl encode principle. Now do a summary:The basic knowledge of Perl: In Perl, there are only two forms of strings. One is octets, a 8-bit sequence, which is the byte
1. Pod syntaxPod can be divided into three kinds, ordinary paragraph, literal paragraph (verbatim Paragraph) and command paragraph.The distinction between the three is very simple, to =pod|head1|cut|over, such as the beginning of the paragraph as a
My personal understanding is that when a variable goes out of scope, it should be gone and gone, but you can still access it, which is the closure.## Look at the example below.# !/usr/bin/env perl-w Use Strict; { my$value'abc';} Print $value;
Comparison operator for strings: Less than-----lt is greater than----GT is less than or equal to----le is greater than or equal to------ge: Gets user input (one line reads until the end of the line break is encountered)Chomp (): Remove newline
Reprint: http://blog.sina.com.cn/s/blog_4a0824490101hncz.html(1)/C means to replace the characters that are not matched.$temp = "Aaaabcdef";$count = $temp =~tr/a/h/c;Print "$temp \t$count\n";Results: Aaaahhhhh 5(2)/d: Replace all characters on the
Http://www.activestate.com/activeperl/downloadsWhen installed, Perl is placed in the path of the environment variable by defaultAfter that, you need to restart your computer to make sure that the environment variable takes effectExecute perl-version
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.