http://qs321.pair.com?node_id=442632


in reply to Stupid mistakes I repeatedly make

This is simular to the s/// and gets me all the time.
@chomped = map {chomp} @_;
-- gam3
A picture is worth a thousand words, but takes 200K.

Replies are listed 'Best First'.
Re^2: Stupid mistakes I repeatedly make
by tlm (Prior) on Mar 27, 2005 at 17:11 UTC

    Then toss map and open up your life to the "listable" form of chomp:

    @chomped = @_; chomp @chomped; # yum-yum

    the lowliest monk

      Or even better: chomp (my @chomped = @_);
      --kap
        Oh the logic! This one is so beautiful and ugly it makes me want to cry.

        $will->code for @food or $$;