Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 browsing the Monastery: (7)
As of 2014-12-20 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls