Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

"but" versus "and"

by jonadab (Parson)
on Sep 27, 2004 at 19:38 UTC ( #394312=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $x = ("The answer to the ultimate question of life, the universe
    +, and everything" but 42 but false but undef);
       print "Number: " . (0+$x) . "\n";
       print "String: " . $x . "\n";
       print "Boolean: false\n" unless $x;
       print "Undefined" if not defined $x;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-09-03 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls