#!/usr/bin/perl use strict; #use warnings; use encoding 'utf8'; use Data::Dumper; sub dump…
$html=`curl http://www.u148.net/article/69164.html`; @img=$html=~m{<img.*?src="([^"]*)"…
#!perl use strict; use warnings; #原始字符串 my $src_str='select username, userid, deptid, role…
package LuaTidy; # 对 Lua 代码进行缩进重排 use Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = …
#!/usr/bin/perl -w sub usage(){ print "\n"; print "Usage : perl extract_host.pl <filena…
use strict; my @path = (); my @lastpath = (); my $count; my $inputfile = "input"; my $max …
#!/usr/bin/perl use strict; use warnings; for (qw <"system" "system.bak">){ die "err…
$dsn = dbi:mysql:northwind; $username="root"; $password="letmein"; $dbh = DBI->connect(…
#!/usr/bin/perl -w use Win32::OLE; use Win32::OLE::Const 'Microsoft Excel'; $class = 'Exce…
use News::NNTPClient; $nntp = new News::NNTPClient('news.yourserver.com'); ($first, $last)…
use Cwd; use Win32::ODBC; $DriverType = "Microsoft Access Driver (*.mdb)"; $DSN = "Email C…
use Net::FTP; $ftp = Net::FTP->new("ftp.cpan.org", Timeout => 30) or die "Could not …