in reply to Skip chomp?
in thread Base sequence length in fasta format file
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; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Skip chomp?
by demerphq (Chancellor) on Apr 25, 2002 at 15:12 UTC |