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 ()
|
---|
In Section
Seekers of Perl Wisdom