in reply to Re^2: Perl oddities (s/// doesn't DWIM in map)
in thread Perl oddities
True. I'd like to see a switch:
my $modified = s/$pattern/$change_to/gr;Where /r stands for 'replaced', or somesuch.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl oddities (s/// doesn't DWIM in map)
by Roy Johnson (Monsignor) on Mar 01, 2005 at 18:50 UTC | |
by Joost (Canon) on Mar 01, 2005 at 20:35 UTC |
In Section
Meditations