in reply to more then one string replacement
and here's another:$string =~ s/description/summary/gi ; $string =~ tr/=/:/ ;
%subs = ( description => 'Summary', '=' => ':', blah => 'wibble' ); foreach (keys %subs) { $string =~ s/\Q$_/$subs{$_}/gi; }
hth,
andy.
|
|---|