Regexp::Subst::Parallel is a module that allows you to make multiple simultaneous substitutions safely. Using the sole exported "subst" function has a rather different effect from doing each substitution sequentially.