Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Adding element to Array?

by ph0enix (Friar)
on Oct 13, 2009 at 07:16 UTC ( [id://800859]=note: print w/replies, xml ) Need Help??


in reply to Adding element to Array?

If '0' (zero) can not be a valid element, you can try following code (append list element to array if it is "true" - not empty and not '0')

push @array, $list if $list;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2025-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.