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

perl 204

#Perl
perl symlink 相对路径

my $sym_file = '/v/global/use/a/file.csv'; my $file = '/v/gobal/use/a/file_1_4_2014.csv'; …

2015-12-14 946

#Perl
获取本机所有IP和设备的绑定情况

#!/usr/bin/perl use strict; use warnings; #首先,文件通过参数传入 my $arg_len = @ARGV; my @lines; if(…

2015-12-14 561

#Perl
INI文件的解析

package IniConf; use base 'Exporter'; use strict; #export function our @EXPORT = qw(load_c…

2015-12-14 744

#Perl
perl中的队列

#!/usr/bin/perl use strict; #use warnings; use feature 'say'; my @people = ("Foo", "Bar");…

2015-12-14 1,004

#Perl
分割合并文件

use strict; my $ItemSize = 1024 * 1024 * 100; open(FILEHANDLE, "< a1.mkv"); binmode FIL…

2015-12-14 957

#Perl
perl解析xml

use XML::Simple; my $xmlfile = "result.xml"; my $casesT = XML::Simple->new( ForceArray …

2015-12-14 673

#Perl
perl通过IMAP接收、处理邮件

#!/usr/bin/perl use warnings; use strict; use Mail::IMAPClient; use Term::ReadKey; print "…

2015-12-14 858

#Perl
Perl 列出系统所有的帐号(Windows)

#FILTER_NORMAL_ACCOUNT Lists normal accounts on a system. #FILTER_SERVER_TRUST_ACCOUNT Lis…

2015-12-14 716

#Perl
Perl 使用 fork 的 socket 服务器

#!/usr/bin/perl use warnings; use IO::Socket; my $servsock = IO::Socket::INET->new( Lis…

2015-12-14 730

#Perl
对存储过程表的列及值添加标记,方便修改

#!/usr/bin/perl -w use warnings; if(open LOGO ,"<sql.txt" or die "\ncan't find File: $!…

2015-12-14 580

#Perl
Perl 使用指定的 User-Agent 抓取网页

#!/usr/bin/perl -w use LWP; use strict; my $browser = LWP::UserAgent->new(agent => '…

2015-12-14 284