Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

"but" versus "and"

by jonadab (Parson)
on Sep 27, 2004 at 19:38 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://394312]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-18 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found