Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

(tye)Re2: do/redo or for(;;): what's Kosher?

by tye (Cardinal)
on Jan 04, 2002 at 22:55 UTC ( #136343=note: print w/ replies, xml ) Need Help??


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")


Comment on (tye)Re2: do/redo or for(;;): what's Kosher?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://136343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2014-07-12 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls