Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: return !!

by ikegami (Patriarch)
on Mar 04, 2009 at 20:32 UTC ( [id://748312]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -wle'print 0 + sub { my @v; !!@v }->()'
    0
    ...
    $ perl -wle'print 0 + sub { my @v; @v ? 1 : "" }->()'
    Argument "" isn't numeric in addition (+) at -e line 1.
    0
    
  2. or download this
    $ perl -wle'print "" . sub { my @v; !!@v }->()'
    
    
    $ perl -wle'print "" . sub { my @v; @v ? 1 : 0 }->()'
    0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found