localtime EXPRlocaltime引用方法:my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;$sec,$min,$hour : seconds, minutes, and hours of the specified time.$mday : the day of the month $mon &n...【阅读全文】
http://blog.csdn.net/jallin2001/article/details/4674314;http://www.360doc.com/content/14/1229/14/12090552_436620848.shtml对于某些字符串,需要输入为特定的格式,通过sprintf可以很方便的完成,不需要专门进行其他处理。perl中的sprintf的用法如下:sprintf format, list;format 为格式,list为处理列...【阅读全文】
#!/usr/bin/perluse Net::TcpDumpLog; use NetPacket::Ethernet; use NetPacket::IP; use NetPacket::TCP; $file=$ARGV[0]; my $log = Net::TcpDumpLog->new(); $log->read("$file");foreach my $index ($log->...【阅读全文】
代码范例 下面给出了一些简短的代码范例,用于说明对各种数据结构的操作。注释很少,将来或许会有吧。ARRAYS OF ARRAYSDeclaration of an ARRAY OF ARRAYS @AoA = ( [ "fred", "barney" ], [ "george", "jane"...【阅读全文】
#!/usr/bin/perl -w$|=1;print "input your genome sequence,then press Enter!\n";my $seq=<STDIN>;open FASTA,"$seq" or die "can not open FASTA file,$!";print "input your gff file name,then press Enter!\n";my $gff=<STDIN>;open GFF,"$gff" or die "can not open GFF file,$!";open OUT,">gene_sequence"...【阅读全文】