Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://589966]
help
Chatterbox?
[jedikaiti]: Eily - hopefully we haven't already scared them off. :-)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-06-26 15:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (583 votes). Check out past polls.