|
|
| Do you know where your variables are? | |
| PerlMonks |
RE: My favorite looping mechanism in Perl is:by merlyn (Sage) |
| on May 09, 2000 at 12:59 UTC ( [id://10748]=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.
My favorite construct is the naked block, together with redo and last to trigger restart and exit:
There... we've got a middle-exiting loop, guaranteeing at least one execution of the first part. Who says we don't have an easy "do-while" loop! -- Randal L. Schwartz, Perl hacker
In Section
Past Polls
|
|
||||||||||||||||||||||||||||