If you're using a more recent Perl, you can use the /r option to s///:
my %hash = map {$_, $_ =~ s/a/X/gr} @array;In reply to Re^2: map and regexp. An newbie question
by anneli
in thread map and regexp. An newbie question
by nando
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |