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;
|
---|
In Section
Seekers of Perl Wisdom
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;
|
---|