while (<INPUT>) { print if length($_) > 251; }
lolly, note that the number has changed to 251 (250 for the number of bases, plus one for the newline).
Andy.
Update: Or of course:
while (<INPUT>) { chomp; print $_."\n" if length($_) > 250; }
In reply to Re: Skip chomp?
by andye
in thread Base sequence length in fasta format file
by lolly
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |