|
|
| XP is just a number | |
| PerlMonks |
Re: Perl style question: loops with postconditionby braughing (Sexton) |
| on Jun 29, 2002 at 21:07 UTC ( [id://178291]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
TomDLux mentions for (;$condition;) {} which has several advantages - it explicitly signals a 'postcondition loop' (or whatever other kind of loop) right at the beginning, it has its own scope and allows last etc, and most importantly it is flexible. It's pretty ugly though.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||