Help for this page

Select Code to Download


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