#!/usr/bin/perl use strict; use warnings; my $sql="select name,age from user where id=1"; …
#!/usr/bin/perl -w use strict; use Getopt::Long qw(:config no_ignore_case); # use GetOptio…
use LWP::Simple; $url = 'http://网页地址'; print get($url); #另一个模块查看网页源代码 use LWP::UserAgent; …
#! perl use strict; use warnings; my $type=3; my $length=8; my $count=3; my @base_char=();…
#!/usr/bin/perl -w use strict; my ($fileA,$fileB) = @ARGV; open A,'<',$fileA or die "Un…
nestat -n | perl -lane '$h{$F[5]++ if /tcp.*/;END {print "$_=>$h{$_}}" for keys %h}'
#!Perl sub handle_syslog() { my($arg) = @_; my($result); my($pid)=0; my($prog); my $evtid=…
#!/usr/bin/perl -w #creat on 2012-04-27 #author wanghz $im_thinking_of=int(rand 10); print…
****************************************************** +----------------------------------…
use File::Find; use Win32::File; &File::Find::find(\&wanted,"C:\\httpd", "C:\\test…
use Mail::POP3Client; $mail = new Mail::POP3Client("username", "password", "pop3.yourserve…
#!/usr/bin/perl # $Id: msg2smtp.pl,v 1.8 2007/07/29 16:30:25 polak Exp $ my $usage = qq! $…