#!/usr/bin/perl-w
@lines = ' Perdoc-u-fatan2 '; Don't confuse anti-quotes with single quotes
foreach (@lines)
{
s/\w}+) >/\U$1/g;
Print
#print "Hello, world!\n"
}
Scalar is the simplest data type in Perl.
For most scalars, it is either a number
DBI: an APIthat connects all databases.DBD: is the DBI drive for different databases.Dbd::mysqlDBD::P GDbd::sqliteIf not , install with cpan .######################################################################DBI Interface:Customary
In PerlThere are two ways of system invocation, one is System (CMD) and the other is ' system 'Never noticed before, the difference between the two ways, and thought it was the same,When I write a script today, I suddenly want to get the return
I recently started to learn shell + sed + awk.
Linuxsir. orgSee the following comments
ArticleTo make it easy for more people to see it! Shell + sed + awk
The three features are the weakest and not debugged.
ProgramMost operations can be
Use of exit functions in Perl
O exit exprO exit
This function calculates the expr value as an integer and uses this value as the finalProgramError statusExit. If expr is omitted, the function exits as 0 (meaning "no error ").
At the same time,
Install and configure Perl in Windows XP
Download:
Apache 1.3.29:
ActivePerl: http://activestate.com/store/download.aspx? Prdguid = 81fbce82-6bd5-49bc-a915-08d58c2648ca
Go to view archive of older releases download ActivePerl-5.6.1.624-TRIAL2-MSWin32
Due to business needs, to query the customer's IP address and filter out customers in some regions, I began to think of using the IP database. It was a little difficult for me to read pure databases, however, my current time requirements are quite
Recently, due to project requirements,
One tool needs to be completed in multiple old Linux/UNIX versions. Some of them do not have python, so they have to regain the Perl documentation ......
Reading the Perl document is a process of vomiting
(1) set external tools
Select advanced> tool Configuration
Perform the following settings:
① Command line: C:/perl/bin/perl.exe "% F"
②. Working directory: % P (some people say there is a relationship between the size and I can run this
In the lab for FPGA development, we often use OpenGL. The code specification becomes a problem. As a result, we have written a Perl script to normalize the code, mainly for automatic indentation and alignment.
The Code principle is very simple. It
Preface
Sometimes there are these requirements:
1. count the number of rows of a file
2. Calculate the number of valid lines of a source code. Exclude empty and comment rows
3. Unify the quantity and number of files in a directory
Many languages
Address: http://blog.chinaunix.net/uid-28671666-id-3554676.htmlPerl Learning Method
Take notes, "a good memory is not as good as a bad pen", the concept, method, skills and other important content must be recorded, so as to deepen the impression
I. Concept of reference:
Perl provides a data type similar to the pointer function in C/C ++, called reference. This reference is different from the reference concept in C ++, but the effect is the same; references in Perl are pointers used to trace
1. command line parameters in Perl:
Perl provides a special built-in array @ argv to store user input parameters from the command line. The function is the same as the command line parameters of C/C ++, but the implementation is not the same; the
Perl contains some predefined file handles. Such as standard input stdin, standard output stdout, and standard error stderr. The standard error stderr is an additional output path. How can we understand this sentence? Let's look at an example.% Perl-
When Perl evolved to Perl 5, we had to consider the original hash design: the hash key value must be a scalar. The solution is to use 'quot '.
A 'quot' is a scalar value pointing to a complete list or a complete hash (or pointing to something else,
Perl is my first dynamic scripting language, but in fact it can be used as a grandmother in other languages. In 1987, Larry Wall released Perl. That was 20 years ago. In the computer world, the past 20 years have been as long as two centuries ago.
Perl uses the functions rand () and srand () to generate random numbers (more specifically, pseudo-random numbers. These functions do not use encryption to provide security, so do not use them to encrypt your financial information. However, if you
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