in reply to Re: (tye)Re: playing with map
in thread playing with map
I'm not qualified to say that it's wrong. I will say that
it doesn't seem like the right tool. Just for an example,
consider the hazard of accidentally doing something like:
If what you meant was to have a @b basket of oranges, and an @a basket of apples, you'll be quite unhappy to find that grep has eaten all of your apples.my @b = grep { s/apples/oranges/ } @a;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: (tye)Re: playing with map
by merlyn (Sage) on Mar 10, 2001 at 16:29 UTC |
In Section
Seekers of Perl Wisdom