#!/usr/bin/perl use strict; use warnings; use feature qw(say); print "输入需要查找的元素:"; my $obj…
#!/usr/bin/perl #use Cwd; sub CompileAll(){ local($dir) = @_; opendir(DIR,"$dir"|| die "ca…
#!/usr/bin/perl use strict; use DBI; my @drivers; @drivers = DBI->available_drivers; fo…
#!/usr/bin/perl -w use Win32; #$ApplicationName = 'c:/winnt/system32/notepad.exe'; #$Appli…
use XML::Simple; my $simple = XML::Simple->new(); # initialize the object my $tree = $s…
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…