in reply to Re^2: <STDIN> not initializing $_
in thread <STDIN> not initializing $_
It is added when the while/until condition is a scalar assignment
As far as I can tell, that's not true. The following prints nothing:
perl -le"while ($a=0) { print 'ysth is right'; last }"
Tested with Perl 5.6.0, 5.6.1, 5.8.0, 5.8.8, 5.10.0.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: <STDIN> not initializing $_
by stiller (Friar) on May 01, 2008 at 05:39 UTC | |
|
Re^4: <STDIN> not initializing $_
by mscharrer (Hermit) on May 01, 2008 at 07:33 UTC |