![]() |
|
"be consistent" | |
PerlMonks |
Re: Why is the null while-loop condition expression true?by Paladin (Vicar) |
on Mar 28, 2016 at 18:31 UTC ( #1158970=note: print w/replies, xml ) | Need Help?? |
From perlsyn (5.22.1 at least):
As a special case, if the test in the "for" loop (or the corresponding "while" loop) is empty, it is treated as true. That is, both for (;;) { ... } and while () { ... } are treated as infinite loops.
In Section
Seekers of Perl Wisdom
|
|