go ahead... be a heretic | |
PerlMonks |
Re: loop issue...by bellaire (Hermit) |
on Mar 20, 2009 at 14:40 UTC ( [id://752057]=note: print w/replies, xml ) | Need Help?? |
Well, here you check whether this particular file is one of the four you want:
But on the very next line, you decide to process all of them: So each time your code hits HU.fa, it'll process all the files. Then when it hits HD.fa, it'll process them all again. Same for the other two. That's why you see the output 4x.
In Section
Seekers of Perl Wisdom
|
|