This free universal space supports asp,.net,php, CGI, Perl, Ruby, Python, SSI, and provides 2 MySQL databases free of charge.
Xiushan Hotline offers 200M universal free space ApplicationThe free universal space size is: 200MB;
No limit of flow;
I'm not sure if undef has a definite relationship with the elimination of values from the array, guess what, if we treat undef as "empty," there will be some connection. But generally, assigning something to undef and deleting something is different.
Perl's operations on files are similar to those of other languages, nothing more than open, read, and write operations.1. Open the file
#! C:/perl/bin/perl-w use
UTF8;
Use strict;
Use warnings;
My $filename = ' test.txt '; # or with an
#!/usr/bin/perl-w use
strict;
Use File::spec;
Local $\ = "\ n"; #当前模块的每行输出加入换行符 my
%options;
#目录路径
$options {single_case} = '/home/jiangyu/src/pl/example ';
my @cases;
if (-D $options {single_case}) {#判断目录是否存在 my
@files;
my $dh;
I. Definition
Functions can be divided into system functions and user functions. A subroutine is a separate piece of code that performs a special task, which makes it easy to reduce duplicate code and make the program readable. In Perl, subroutines
One, List
A list is a sequence of values enclosed in parentheses that can be any value or NULL, such as: (1, 5.3, "Hello", 2), empty list: ().
Note: A list containing only one numeric value (for example: (43.2)) is different from the value itself
Method one, manual installation steps
Download the DBI Module version 1.13 of the compressed file dbi-1.13.tar.gz from CPAN, assuming it is under/usr/local/src/.Cd/usr/local/srcUnzip this file:Tar xvzf dbi-1.13.tar.gzA new DBI-1.13 directory is
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
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
To re-assign each array element with a For loop:#!/usr/bin/perl@array = (1..30);p rint "@array \ n"; for ($i =0; $i Re-assigns each array element with a while loop:#!/usr/bin/perl@array = (1..30), $count = 1;print @array, while ($count Re-assigning
Python syntax is simple, and by indenting the way to express hierarchy, the code is very concise and easy to understand, for beginners, it is easier to get started.The pattern matching of Perl is very powerful, and there are many kinds of matching
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
The method of encrypting signature in Ucloud API document is not clear, and there is no Perl version, specially wrote a copy for everyone to refer UseUri::Escape; UseUTF8; UseEncode; UseANYEVENT::HTTP::LWP::useragent; UseDigest::SHA QW (SHA1
Index1. Statistics of the length of Fasta, FA and FASTQ files, the number of reads in the statistics FASTQ, the individual reads length, the total length of reads, and the number of Fasta in the statistics Contig file, listing the name, the length
In Perl, the call System command has two situations, ' cmd ' and ' system ' cmd, their main difference being ' cmd ' will get the return result, and system "cmd" will directly output the result to the screen, for this difference has the following
Read standard input: in Perlforeach () {print "I saw $_";}The diamond operator <>: Its parameters are derived from the @argv array.The @argv array is checked first, and if it is empty, it is entered from the standard input stream. The value of the
Many times, we want to make certain changes to the content of the original file, although Linux has sed this powerful text editing command, but he can only generate new files or print to screen (perhaps Sed also has the function of modifying the
I. List
The list is a sequence of values contained in parentheses. It can be any value or empty, for example: (1, 5.3, "hello", 2), empty list :().
Note: The list containing only one value (for example, (43.2) is different from the value itself (I
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