$string = '|123456|john+'; /\Q$string\E/ # Strings are still interpolated, # but their contents are escaped.