Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 imbibing at the Monastery: (6)
As of 2015-07-06 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls