![]() |
|
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?? |
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;
In Section
Seekers of Perl Wisdom
|
|