They are all script languages. They are executed directly after being written without compilation.
Perl is used to process the parsing of a large number of texts.
Shell is suitable for system management, such as automatic completion of a series of
Here are some notes for learning and using Perl. List one item today:1. Analyze the Matching content of the following regular expression
/^/B [/W.] {1, 12}/B $/
Answer: This regular expression matches a line that starts with a character and
Note:Read the output of the "netstat-p tcp" command, extract the data in the foreign address section, and count the multiple connections of the same IP address.
Advantages:Compared with the output of the netstat command, you can more intuitively
Putty
Regular ExpressionsReview:@ Array@ Argv@ Marr multi-dimensional array
Difference between Su and sudo commandsHttp://linux.chinaitlab.com/command/730542_2.html: WQ is mandatory to write files and exit. Write the file forcibly even if it is
Source: http://www.regular-expressions.info/vbscript.html
VBScript's regular expression supportVBScript has built-in support for regular expressions. if you use Vbscript to validate user input on a web page at the client side, Using VBScript's
#! /Usr/bin/perl open DL, "list" | die "Open error $! "; % hash; while () { # Print $ _; my ($ A, $ B, $ C, $ d) = Split ('_', $ _); my ($ D, $ e) = Split (//. /, $ C); $ hash {$ _} = $ D; # Make a hash key and set the file name value to the
Search for substrings:
Index () and rindex ()
These two functions are used to find strings in strings. The rindex function is the same as the index function, except that it is located later.There are two main usage options: Index ($ string, $
I. Three Forms of Regular Expressions
First, we should know that there are three regular expressions in the Perl program:
Match: M/;/(can also be abbreviated as/;/, skip m)
Replace: S/;/ ;/
Conversion: TR/;/ ;/
The three forms are generally equal
Command :#Notes: remark announcementExample: # This program is a demo Annotation
-------------------------------------------------------------------------Command: PrintSyntax 1: Print filehandle listNote: This filehandle serves as a bridge between I
Command: Print
Syntax: Print filehandle list
Note: This filehandle can be seen as a bridge between I (input) and O (output). You can use filehandle to read and write data. stdin indicates the connection from which data is input, for example, input
Making references
References can be created in several ways.
By using the backslash operator on a variable, subroutine, or value. (This works much like the & (address-of) Operator in C.) This typically createsAnotherReference to a variable, because
Reason
Looking back at Perl recently, on the one hand, my customer manufacturers developed a lot of things with Perl, on the other hand, they reviewed the Perl language and had some experiences. Record it for your reference.
I am working on a small
Posted on Netease blog 21:22:33
3.1 list Printing
# When reading each list value from stdin, it is processed by chomp. Therefore, each list element is removed from the line break at the end.Chomp (@ lines = );Print "print the list \ n ";Foreach $
1) sort function
Sort listSort Block ListSort subname list
The usage of sort is as follows. It sorts the list and returns the sorted list. If the subname or block is ignored, sort is performed in the standard string comparison order (for example,
My personal link:Http://www.wachnew.com
The following are some of the knowledge points I recorded when learning Perl for later viewing. The following code is a program file that can be successfully run on the Perl parser.
#! /Usr/bin/perl-W
#
File: whox. pl;Function: lists who is on the system. If the same user has logged on to the group multiple times;Description: lists the user logon times, virtual terminal numbers used, and corresponding IP addresses;Advantage: it is more intuitive
The inheritance of Perl classes (packages) is implemented through the @ ISA array. In short, Perl regards it as a special array of directory names, similar to the @ INC array (the @ INC array contains a reference path ). When Perl cannot find the
Document directory
My debugging Philosophy
Title
Brian's Guide to PerlOutline
Read this guide and stay informedDescribe my debugging Philosophy
I believe there are three things:
This is not a personal issue
Don't always think about your code.
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.