首页 软件开发 代码片段 perl ( Page 10 )

perl 204

#Perl
sort 自定义函数排序

sub by_number { if ($a > $b){1} elsif($a < $b){-1} else {0} } my @number = (1,4,76,4…

2015-12-14 216

#Perl
查找重复文件

#!/usr/bin/perl # # fdupe tool - finding duplicate files # # $Id: fdupe,v 1.7 2011/10/14 2…

2015-12-14 133

#Perl
结合Zabbix做MySQL相关性能参数

#!/usr/bin/perl use Getopt::Long; use DBI; use warnings; use strict; my $config_file=''; m…

2015-12-14 599

#Perl
perl 等待打点功能实现。休闲代码:)

#!/usr/bin/perl -w use threads; use threads::shared; $| =1 ; my $flag : shared = 0; &p…

2015-12-14 392

#Perl
Perl 一个简单的 GUI 程序,有退出按钮

#!/usr/bin/perl -w use Tk; $Tk::strictMotif = 1; $main = MainWindow->new(); $button1 = …

2015-12-14 256

#Perl
Perl 调用 SetAttributes 修改文件属性 (Windows)

use Win32::File; Win32::File::SetAttributes($name, $attr); #!/usr/bin/perl -w use Win32::F…

2015-12-14 902

#Perl
Perl 使用 telnet 登录到远程服务器

use Net::Telnet; $telnet = Net::Telnet->new ( Timeout => 90, Prompt => '%', Host …

2015-12-14 899

#Perl
从 Yahoo.com 获取股票数据(csv格式)

#!/usr/bin/perl # # Script to download a table of daily stock data in .csv format # from y…

2015-12-14 774

#Perl
Perl 使用 Mail::POP3Client 发送邮件

use Mail::POP3Client; $mail = new Mail::POP3Client("username", "password", "pop3.yourserve…

2015-12-14 335

#Perl
将perl脚本变成乱糟糟的一团

#!/usr/bin/perl while( <> ) { if( /^#/ ) { if( /^#!/ ) { print $_; } next; } if( /##…

2015-12-14 433

#Perl
MySQL的异步调用模块

package MySQLDBI; use EV; use DBI; use base 'Exporter'; use strict; our @EXPORT = qw(creat…

2015-12-14 164

#Perl
perl发送邮件,简单的代码

use Net::SMTP; $smtp = Net::SMTP->new('smtp.126.com'); $smtp->auth('abcdef@126.com',…

2015-12-14 592
1 8 9 10 11 12 17