|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: do/redo or for(;;): what's Kosher?by dragonchild (Archbishop) |
| on Jan 03, 2002 at 22:42 UTC ( #136033=note: print w/ replies, xml ) | Need Help?? |
|
I personally don't like that idiom, because it's not obvious to me that it's an infinite loop. For that, I would prefer while (1) or something along those lines. (Actually, I've never had to program an eternal loop before. *shrugs*) Of course, I've also never used redo, so the idiom isn't very familiar to me. ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||