in reply to modifying $_ in map (was Re: A perverse use of grep)
in thread A perverse use of grep

funny that I just read that section of "Effective Perl" last night (while sitting on my toilet:-). To summarize: use grep to select, use map to transform, in either case, don't change $_. It's interesting to note that the OP is a combination of select and transform.
  • Comment on Re: modifying $_ in map (was Re: A perverse use of grep)