in reply to
Re^2: Perl oddities (s/// doesn't DWIM in map)
in thread
Perl oddities
my @new = map { local $_ = $_; s/foo/bar/; $_ } @old;
also avoids the problem. Probably faster than using two
map
s, too. Still ugly, unfortunately.
Comment on
Re^3: Perl oddities (s/// doesn't DWIM in map)
Select
or
Download
Code
In Section
Meditations