Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-08-28 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (394 votes). Check out past polls.