in reply to Metacharacters in a variable as literals in regex

/\Q$variable\E/;

See also the 'perlre' manual page.

Abigail