Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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
Domain Nodelet?
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 lurking in the Monastery: (2)
As of 2023-06-10 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (39 votes). Check out past polls.

    Notices?