Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: To test empty array in perl

by Sandy (Curate)
on Apr 26, 2010 at 15:36 UTC ( [id://836939]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (! @array) {
      # there are NO elements, do what you need to do
    ...
      # there are elements in your array, but they are either
      # empty strings, or strings with spaces
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found