http://qs1969.pair.com?node_id=800859


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;