"be consistent" | |
PerlMonks |
Re: To Pattern Match or not to Pattern Matchby mlh2003 (Scribe) |
on Mar 03, 2005 at 23:56 UTC ( [id://436414]=note: print w/replies, xml ) | Need Help?? |
In your else block, you need to add 'last;' to exit the inner loop and go to the next element in the outer loop.
That should prevent that line from printing 10 times.
--------------------
mlh2003
In Section
Seekers of Perl Wisdom
|
|