There's also quotemeta and m/\Q$regex\E/ for escaping strings in a regex. (If you don't do anything else, the regex doesn't have any benefit over index, though. Except perhaps ease of use).
In reply to Re: "exact" pattern matching
by moritz
in thread "exact" pattern matching
by my_nihilist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |