use Win32::ODBC; $DSN = "Email Contacts"; my $myDb = Win32::ODBC->new($DSN); if (! $myD…
# The syntax is (name, altnames, addrtype, len, addrs) = # gethostbyaddr (inaddr, inaddrty…
use Win32::Internet; use Encode; $INET = new Win32::Internet(); $file = $INET ->FetchUR…
#!/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…