in reply to Metacharacters in a variable as literals in regex
$quotedregex = quotemeta $unquotedregex; m/$quotedregex/; [download]
--
flounder