- or download this
pop @array; #pop removes the last item of an array
- or download this
chomp foreach( @array ); # the foreach loop 'remembers' the value
- or download this
chomp foreach( @array );
@array = grep { length } @array; #grep leaves out all items that have
+a 'false' length