Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Stupid mistakes I repeatedly make

by gam3 (Curate)
on Mar 27, 2005 at 16:07 UTC ( #442632=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Stupid mistakes I repeatedly make
Download Code
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 $$;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://442632]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-07-03 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls