![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: "for" surpriseby melora (Scribe) |
on Nov 22, 2003 at 18:17 UTC ( #309179=note: print w/replies, xml ) | Need Help?? |
I've got to agree with Corion, this is questionable style. I would suggest setting a different variable to mark where (or why or how) the loop was exited, if that's needed after the loop exits. Besides, to be fair to the iterator variable, its only job was to count through the loop, not to provide information after the loop is over.
In Section
Seekers of Perl Wisdom
|
|