We don't bite newbies here... much | |
PerlMonks |
Re: "return" to break out of a loopby moritz (Cardinal) |
on May 13, 2008 at 14:25 UTC ( [id://686269]=note: print w/replies, xml ) | Need Help?? |
IMHO there's nothing wrong with it.
Some languages (like Eiffel) disallow such a construct to make it easier to prove the correctness, and to get a better idea about the flow of the program (which is in this case: it runs through the method until it hits the end of that method). But I found return and last useful at times, and wouldn't want to miss it.
In Section
Seekers of Perl Wisdom
|
|