wget http://www.cpan.org/src/5.0/perl-5.20. 1. Tar. -xzf perl-5.20. 1. Tar. gzcd Perl-5.20. 1./configure-des-dprefix=$HOME/localperlmakemake testmake InstallView CodeThis process takes about more than 10 minutesEdit the first Perl
Installing the Vsphere SDK
Vmware-vsphere-perl-sdk-5.1.0-780721.exe # #看具体的情况安装对应版本的sdk
Modify the system environment variables to add the installation path Perl/bin and Perl/site/bin to the back of the PATH variable
CMD to perl script
Page not found ... yet!None of these routes could generate a response for your POST request /login for, maybe you need To add a new one?$r->post ('/login ')->to (' Postpage#login ');Debug prompt: ... I don't know what the template actually will be
Do not know is not only my is so hehe ...Perl\mojoka\my_app\script>morbo -husage: morbo [options] [application] morbo ./script/myapp morbo ./myapp.pl morbo -m production -l https://*:443 -l http://[::]:3000 ./myapp.pl morbo -l ' https://*:443?
#!/usr/bin/perl-w Usewarnings; UseStrict;my $usage= qq{$0INPUT_FASTQ trim_length}; die "$usage \ n" if scalar @ARGV!=2;my($FASTQ,$trim _length) =@ARGV;Open(FASTQ,$FASTQ) or die "Can ' t open $FASTQ \ n"; while(my $readid= ) { Chomp $readid;
A. Original text replacementPerl-p-i.bak-e "s/source string/target string/g" The original text is backed up as a. bak suffix fileB. Regular packet Extractionecho "Tom and dic" | Perl-n-E ' @w =/(Tom). * (DIC)/; print "$w [0] & $w [1]" 'Print "Tom &
When you write a small script today, you need to immediately output the current progress to the command line, and immediately write important data to the report file. But Perl by default is output buffered, display to the command line must be at the
String variable: ${}1. Single quote: Do not replace the variable, do not escape, the string can cross the line.2. Double quotes: variable substitution (greedy matching principle), support escape character (escape character can be seen separately)3.
Array:Special array index: Adds an assignment to an element whose index value exceeds the end of the array, which is automatically expanded as needed as long as there is available memory allocated to the array. The value of an unexpectedly
One day when wandering around saw a pair of motion diagram: Really is very greedy, all kinds of turning all kinds of eating, feel very interesting.Use Perl to achieve automatic eating full, premeditated, before the character of the snake,
#! /usr/bin/perlUse Expect; #前提是你的服务器上得有Expect包, no installation, no use of interactiveMy $PROMPT = ' [\]\$\>\#]\s*$ '; # command Prompt mode for remote system@a = qw#100.100.100.200 root#; #假设你要登陆的主机ip是100.100.100.200 User is root$obj =
1, "." : Any single character (except ' \ n ');2, "*": match the preceding paragraph 0~n times;3, "+": match the preceding paragraph 1~n times;4, "?" : Match the preceding 0~1 times;5.1, "\1" or "\2": Reverse reference;5.2, "\g{n}": direction
Here is a summary of some code snippets in the daily work, some comments are added later, using//This form, do not apply.1. Get user inputPrint ("Please input the date range:");$dateRange =;Chomp ($dateRange);2. Exit the program if the data does not
To define a sub-program :To define your own subroutine, you can use the keyword sub, the subroutine name (not including the number), and the block of code enclosed in curly braces, for example:1 Sub marine{2 $n + =1; # global variable $n 3
#安装:sudo perl-mcpan-e shellInstall Term::P Rogressbar#场景: Suppose that there are 200 URLs need crawlers, each URL crawl speed is not the same, the completion of the 第1-2个 URL crawler completed, the progress bar shows 1%. Of course the count of the
#! /usr/bin/perlUse GETOPT::STD;Use warnings;Use strict;Sub Read_from_sh ($) {my $file = shift;My @files = ();Open F, $file or die "Could not open $file: $!";while () {Next if/^\s*$/;Push @files, $_;}Close F or die "Could not close $file: $!";return
How to debug in Perl ?, Debugperl
If it is a small program, you can use this way:
C: \ Rebecca \ script \ perl>Perl-d calculate. pl
Loading DB routines from perl5db. pl version 1.39 _ 10
Editor support available.
Enter h or 'H H' for help, or '
How to generate exe for your PERL script ?, Generateperl
The way I am using is PAR Packer.
1. Downloadmodule PAR Packer:
Http://search.cpan.org /~ Rschupp/pars-packer-1.024/lib/PAR/Packer. pm
2. InstallPAR Packer:
2.1Unzipthe *. tar
2.2Go tothe
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.