Perl: the Markov chain saw | |
PerlMonks |
Re: "return" to break out of a loopby ikegami (Patriarch) |
on May 13, 2008 at 14:30 UTC ( [id://686275]=note: print w/replies, xml ) | Need Help?? |
is actually a rather common construct. If you don't like it, you could use a flag variable. You could even get rid of the last by changing the loop control. But everytime you change something from the original, it gets bigger and more complex, and therefore harder to read and more error prone.
In Section
Seekers of Perl Wisdom
|
|