Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Empty or not empty ?

by revdiablo (Prior)
on Dec 15, 2006 at 02:08 UTC ( #589966=note: print w/ replies, xml ) Need Help??


in reply to Empty or not empty ?

Simply:

if (@array) {}

Update: oops! Thanks to ikegami for pointing out that I negated the logic here. That could be if (!@array) {} as others have written.


Comment on Re: Empty or not empty ?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-07-31 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls