- or download this
s/(?<=[a-z])-(?=[a-z])/ /g;
- or download this
my %replacement;
...
for my $item ( keys %replacement ) {
s/$item/$replacement{$item}/g;
}
- or download this
my $replacements =
[
...
for my $edit ( @$replacements ) {
s/$$edit[0]/$$edit[1]/;
}