XP is just a number | |
PerlMonks |
Re: "return" to break out of a loopby psini (Deacon) |
on May 13, 2008 at 14:27 UTC ( [id://686271]=note: print w/replies, xml ) | Need Help?? |
I don't think there is anything actually bad in exiting from within a loop but... ...I too don't like it :) I think of it as inelegant. My personal feeling is that a sub should end at or near the end of its block, but again perhaps I'm just beeing fussy.
Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.
In Section
Seekers of Perl Wisdom
|
|