Don't ask to ask, just ask | |
PerlMonks |
Re: "return" to break out of a loopby FunkyMonk (Chancellor) |
on May 13, 2008 at 22:26 UTC ( [id://686394]=note: print w/replies, xml ) | Need Help?? |
Back in the dark ages, when I was was at uni, I was taught that every programming construct should have exactly one entry and exactly one exit point1 It sucked then, and it still sucks now. return inside a loop is perfectly acceptable.
--
In Section
Seekers of Perl Wisdom
|
|