Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Reopen file when contents changed?

by calin (Deacon)
on Jun 07, 2005 at 15:57 UTC ( #464359=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reopen file when contents changed?
in thread Reopen file when contents changed?

Side discussion: why

while () { ... }

is interpreted as

while (1) { ... }

I can't find anything relevant in perldoc perlsyn.

$ perl -MO=Deparse -e 'while () {print "tick!\n"}' while (1) { print "tick!\n"; }

Update: Below is the deparse from perl 5.6.1. Above was 5.8.

$ perl561 -MO=Deparse -e 'while () {print "tick!\n"}' for (;;) { print "tick!\n"; }

Update 2: See more discussion in thread while ()

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-08-18 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?