in reply to Re: Why localize $_ in the map block?
in thread how could I use map here?

Ahh, very interesting. I remember that in the Camel book where it explains the use of grep, there is an example along the lines of:

@subset = grep {s/x/y/} @set;
and it points out that this will alter the entries in @set, but it never mentions that you can avoid this by localizing $_...

pike