use Win32::EventLog; $eventLog = Win32::EventLog->new('System') || die $!; %eventRecord…
use IO::Socket; $socket = IO::Socket::INET->new ( PeerAddr => 'server.com', PeerPort…
#!/usr/bin/env perl6 use v6; sub MAIN(Str :f($file)) { my @lines = $file.IO.lines; my @sub…
#!/usr/bin/perl use threads; use threads::shared; use Thread; use Thread::Queue; use POSIX…
my $path = `pwd`; chomp $path; # `pwd`命令结尾有个回车符,需要chomp去掉 print "$path\n "; opendir DIR ,$…
#!/usr/bin/perl `find /bak/ >list.txt`; open LIST,"/root/list.txt"; while (<LIST>…
#!perl # #作者:赵灿星 #本perl脚本用于遍历目录下所有文件,使用时请将本脚本拷贝到需要遍历的目录下,双击即可 # # use strict; use Cwd; use…
#!/usr/bin/perl -w use strict; use feature 'say'; use Spreadsheet::ParseExcel; ####excel操作…
#!/usr/bin/perl use strict; use warnings; use feature qw(say); my @e = qw/ 4 88 5 21 92 37…
#!/usr/bin/perl # sydi_dmenu --- # # Filename: sydi_dmenu # Description: This script make …
use DBI qw(:sql_types); my $dbh = DBI->connect('dbi:mysql:sample_db','root','password',…
# This function takes the error number returned by the Win32::GetLastError function. #!/us…