I'm guessing here, but it seems from your code like maybe what you're trying to do is return all lines which are longer than 250 characters? If so, try something like this:
If that's not what you want, then could you explain again what the problem is? (particularly, what's a base?)while (<INPUT>) { chomp; print if length($_) > 250; }
Anyway, hope that helps.
andy.
In reply to Re: simple but stuck
by andye
in thread Base sequence length in fasta format file
by lolly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |