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 reply to Re: Adding element to Array?
by ph0enix
in thread Adding element to Array?
by cthar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |