Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

When does while() test for defined vs truth

by blakem (Monsignor)
on Dec 17, 2001 at 07:01 UTC ( #132451=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #### GLOBS cause defined to show up
      # while(<*.pl>) {}         DEFINEDNESS
    ...
      # '1 while($x = <*.pl>)    TRUTHFULNESS
      % perl -MO=Deparse -e '1 while($x = <*.pl>)'
      '???' while $x = CORE::GLOBAL::glob('*.pl', 0);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://132451]
Approved by root
help
Chatterbox?
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: (9)
As of 2014-08-20 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls