![]() |
|
go ahead... be a heretic | |
PerlMonks |
RE: My favorite looping mechanism in Perl is:by merlyn (Sage) |
on May 09, 2000 at 16:59 UTC ( #10748=note: print w/replies, xml ) | Need Help?? |
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
|
|