Think about Loose Coupling | |
PerlMonks |
Re: "return" to break out of a loopby jettero (Monsignor) |
on May 13, 2008 at 14:29 UTC ( [id://686274]=note: print w/replies, xml ) | Need Help?? |
There's nothing wrong with it. It's not only common practice, but it's an efficient way to break out of a loop and return a value (shortcutting the rest of the function logic). It's probably correct. I suppose there are places where it's bad to do it, but nothing comes to mind.
-Paul
In Section
Seekers of Perl Wisdom
|
|