# IN the config file $regexp = '@example.com'; $replacement = '@other.com'; # Many places nestled in the code $mail = s/$regexp/$replacement;