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

perl 204

#Perl
遍历目录下所有的文件

#!perl # #作者:赵灿星 #本perl脚本用于遍历目录下所有文件,使用时请将本脚本拷贝到需要遍历的目录下,双击即可 # # use strict; use Cwd; use…

2015-12-14 956

#Perl
perl读取excel文件内容

#!/usr/bin/perl -w use strict; use feature 'say'; use Spreadsheet::ParseExcel; ####excel操作…

2015-12-14 663

#Perl
冒泡排序

#!/usr/bin/perl use strict; use warnings; use feature qw(say); my @e = qw/ 4 88 5 21 92 37…

2015-12-14 453

#Perl
根据使用频率输出dmenu的结果

#!/usr/bin/perl # sydi_dmenu --- # # Filename: sydi_dmenu # Description: This script make …

2015-12-14 293

#Perl
Perl 数据库事务处理(提交和回滚)

use DBI qw(:sql_types); my $dbh = DBI->connect('dbi:mysql:sample_db','root','password',…

2015-12-14 1,033

#Perl
Perl 根据 Windows 的错误码获取详细的描述信息

# This function takes the error number returned by the Win32::GetLastError function. #!/us…

2015-12-14 495

#Perl
Perl 使用 XML::Parser 来解析 XML 文件

use XML::Parser; my $xmlfile = "yourXML.xml"; my $parser = XML::Parser->new( ErrorConte…

2015-12-14 381

#Perl
Perl 访问 Windows 的事件日志

#!/usr/bin/perl -w use Win32::EventLog; $area = 'System'; # Default $host = $ENV{'Computer…

2015-12-14 848

#Perl
Perl Socket 客户端通讯一例

#!/usr/bin/perl print "client\n"; $AF_UNIX=1; $SOCK_STREAM=1; $PROTOCOL=0; socket(CLIENTSO…

2015-12-14 614

#Perl
A sample use perl www library

#!/usr/bin/env perl use utf8; use strict; use warnings; use 5.010001; use WWW::Mechanize; …

2015-12-14 873

#Perl
删除C语言代码中的所有注释

#!/usr/bin/perl -w my $c_file = $ARGV[0]; my $c_file_out = $ARGV[1]; open(CF,"<$c_file"…

2015-12-14 715

#Perl
可以把一个fasta序列格式的核酸序列 转换为其反向互补链,并且每行60个碱基的格式化输出

#!/usr/bin/env perl use strict; use warnings; local $/ = ">"; while(<>){ chomp; m…

2015-12-14 439