in reply to Re^3: Perl oddities (s/// doesn't DWIM in map)
in thread Perl oddities

Would that be equivalent to
(my $modified = $_) =~ s/$pattern/$change_to/g;
or
s/$pattern/$change_to/g; my $modified = $_;
?

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^5: Perl oddities (s/// doesn't DWIM in map)
by Joost (Canon) on Mar 01, 2005 at 20:35 UTC