http://www.perlmonks.org?node_id=136343


in reply to Re: Re: Re: do/redo or for(;;): what's Kosher?
in thread do/redo or for(;;): what's Kosher?

$ perl -MO=Deparse -e "while(1){die}" for (;;) { die; } -e syntax OK
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")