s/\Q$from_re/$to/;
"\Q$string" is the same as quotemeta($string), both in a doublequotish string and in a regexp.
In reply to Re^2: substitution problem with ()
by bart
in thread substitution problem with ()
by sroy5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |