Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Why is the null while-loop condition expression true?by hexcoder (Curate) |
on Mar 28, 2016 at 19:02 UTC ( [id://1158974]=note: print w/replies, xml ) | Need Help?? |
The rationale might have been that in former art (in this case C) for (;;) { ... } was a common idiom for an infinite loop. While C did not allow an empty condition in a while loop, the canonical treatment of the loop condition in for and while in Perl might have led to this result. I think it is more consistent than in C.
In Section
Seekers of Perl Wisdom
|
|