Where do you increment $counter?
In reply to Re: Parsing Multiple Alignment -- using Perl for DNA by Corion in thread Parsing Multiple Alignment -- using Perl for DNA by le_albatross