Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: return !!

by Random_Walk (Parson)
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!


Comment on Re: return !!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2014-07-26 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls