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

Re: return !!

by Random_Walk (Prior)
on Mar 04, 2009 at 20:07 UTC ( #748307=note: print w/replies, xml ) Need Help??


in reply to return !!

It is returning true if the array contains any elements, false if not.

It take the array in scalar context (thus getting its length) and negates it, so zero length would be true, non-zero false, then negates this again.

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://748307]
help
Chatterbox?
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-03-28 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (326 votes). Check out past polls.