Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^4: <STDIN> not initializing $_

by stiller (Friar)
on May 01, 2008 at 05:39 UTC ( #683860=note: print w/ replies, xml ) Need Help??

in reply to Re^3: <STDIN> not initializing $_
in thread <STDIN> not initializing $_

An extra edge case:

perl -le'while($a = 0){print "$a ok\n"; last }' # perl -le'while($a = 1){print "$a ok\n"; last }' # prints 1 ok
But the "implicit test for defined" is built into the while( ) by language design, there is no extra magic about that in any context?

Comment on Re^4: <STDIN> not initializing $_
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-11-27 16:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls