in reply to variables within substitutions?
The substitution string is not parsed as a regular expression, so you don't need to quotemeta it, i.e. don't quotemeta $value