which tells me that Perl considers while(1) and for(;;) to be the same, which means it does optimize for(;;) into a simple infinite loop. - tye (but my friends call me "Tye")$ perl -MO=Deparse -e "while(1){die}" for (;;) { die; } -e syntax OK
In reply to (tye)Re2: do/redo or for(;;): what's Kosher?
by tye
in thread do/redo or for(;;): what's Kosher?
by rje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |