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

perl 204

#Perl
计算N位数字的自幂数(水仙花数)

print "input :"; chomp ($num=<STDIN>); foreach (100..(10**($num)-1)){ my $t=$_; my $…

2015-12-14 424

#Perl
prim最小生成树

#! /usr/bin/perl -w use strict; my $filepath = "input3"; my @matrix = (); my $count; my $m…

2015-12-14 970

#Perl
perl 脚本去掉 word 自定义属性

#!/usr/bin/perl use Archive::Zip; use IO::File; use Data::Dumper; use XML::Simple; my $buf…

2015-12-14 139

#Perl
Perl 往数据库中插入数据

#!\usr\bin\perl use warnings; use strict; use DBI; my ($dbh, $rows); $dbh=DBI->connect(…

2015-12-14 862

#Perl
Perl 创建控制台模式的进程窗口

#!/usr/bin/perl -w use Win32; use Win32::Process; $ApplicationName = 'c:/perl/bin/perl.exe…

2015-12-14 373

#Perl
Perl 使用 HTTP::Request 请求 URL 并将响应保存到文件

use LWP::UserAgent; $user_agent = new LWP::UserAgent; $request = new HTTP::Request('GET', …

2015-12-14 673

#Perl
Perl 获取 Windows 系统的版本

#!/usr/bin/perl -w use Win32; @os = Win32::GetOSVersion(); print "Version $os[1]\.$os[2] B…

2015-12-14 964

#Perl
Perl 的 gethostbyname 使用方法

# The syntax is (name, altnames, addrtype, len, addrs) = gethostbyname (inname); #!/usr/lo…

2015-12-14 288

#Perl
blast结果的m7格式转换为m8格式

while (<>) { if (/Iteration_query-def/) { />(.*?)</; $out1=$1; } if (/Hit_def/…

2015-12-14 612

#Perl
Perl6 Bracket Match

#!/usr/bin/env perl6 my \stdin = $*IN; my $count = ~stdin.get(); my %table = 93 => 91, …

2015-12-14 877

#Perl
根据一个ID列表文件来从一个fasta文件里面挑取符合要求的序列

#!/usr/bin/perl -w if( @ARGV != 2 ) { print "Usage: we need two files\n"; exit 0; } my $ID…

2015-12-14 898

#Perl
通过Code2HTML将源代码文本转换成HTML

#转换整个文件 code2html -l java Test.java test.html #转换代码片段 code2html -p test.html #test.html &l…

2015-12-14 603
1 11 12 13 14 15 17