in reply to Why is the null while-loop condition expression true?
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