#!/usr/bin/perl -w use Win32::Shortcut; $ApplicationName = 'c:/winnt/system32/notepad.exe'…
#!/usr/bin/perl use warnings; use strict; use IO::Socket; # queue up no more than 5 pendin…
#!/usr/bin/perl # EmacSpeaks Festival # # A Emacspeak speech server for Festival written i…
use strict; use warnings; my $seq = "MTVLLLVVLQMWKATAGHSIAVSQDDGADDWETDPDFVNDVSEKEQRWGAKTV…
#!/usr/lib/perl -w use strict; use warnings; use Class::Struct; use Getopt::Long qw(:confi…
use 5.01; use Mojolicious::Lite; get '/update' => sub { my $self = shift; my $resp=`s…
糟糕的: my @Lines = qx(zcat $file); foreach my $line(@Lines){ .... } 漂亮的: open(FILE, '-|', "z…
#!/usr/bin/perl -w #author:shenxiaoran use strict; use Sys::Uptime; my $nbrcpu = Sys::Upti…
@a=(); #定义一个全局数组@a $a=0; #定义一个全局标量$a sub greet{ push(@a ,@_[0]); if($a==0){ print "hi ".@a…
#!/usr/bin/perl system("uname -r"); system("uname -a");
$dbh = DBI->connect('dbi:Oracle:payroll','scott','tiger'); $dbh = DBI->connect("dbi:…
(1 x ++$_) =~ /^1?$|^(11+?)\1+$/ || print "$_\n" while $_ < 1000