in reply to Re: Efficient way to replace a set of values with another set of values
in thread Efficient way to replace a set of values with another set of values
(The m switch had to added so that ^ would match on each line).$string =~ s/^($regexp)/$replacements{$1}/gm;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Efficient way to replace a set of values with another set of values
by tobyink (Canon) on Nov 23, 2012 at 10:50 UTC | |
by ColonelPanic (Friar) on Nov 23, 2012 at 11:04 UTC |