Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 meditating upon the Monastery: (7)
As of 2015-03-28 04:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (623 votes), past polls