- 论坛徽章:
- 0
|
use strict;use warnings;
open(FILE,"<UrFile")||die "Can't open the file : $!\n";
my($slength,$swidth,$spaces);
while(defined($_=<FILE>)){
chomp;
#print $_,"\n";
if(/^uniqu/){
if(/[ACTG]+\s*$/){
$slength=$-[0];
$swidth=length($&);
}
$spaces=" "x$slength;
print $spaces,$&,"\n";
}else{
if(/^TA[0-9]+/){
my $string=substr($_,$slength,$swidth);
print $spaces,$string,"\n";
}
}
}
close FILE;
|
|
|