![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Perl style question: loops with postconditionby braughing (Sexton) |
on Jun 30, 2002 at 01:07 UTC ( [id://178291]=note: print w/replies, xml ) | Need Help?? |
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
|
|