|Think about Loose Coupling|
Re^15: how to access elements in perlby wjw (Curate)
|on May 19, 2014 at 08:08 UTC||Need Help??|
Could you provide perhaps a single line or maybe even 2 or 3 of the input file?
I modified your code a bit for brevity(untested). I am not all that familiar with microbiology(been 35 years since high school biology). I suspect there are CPAN modules that will handle problems like this. Do a search for like this one at bio:: and see if there might be something you can use if that is an option for you.
Hope that is in some way helpful...
Update: moved printing back outside the sub. What I get for messing with code at this hour of the morning...
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...