Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: What is true and false in Perl?

by tobyink (Abbot)
on Oct 18, 2012 at 02:26 UTC ( #999654=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Does not say "true". This is as you describe.
    say "true" if undef, undef;
    
    # Still doesn't say true.
    say "true" if 1, 2, 3, 4, undef;
    
  2. or download this
    say "true" if 1, 2, 3, 4, undef;
    
  3. or download this
    sub x {
      1;
    ...
      return undef;
    }
    say "true" if x();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-10-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls