Say I have $foo = \"bar.baz\"
$foo = \"bar.baz\"
I want to use the scalar $foo to find strings that contain \"bar.baz\" (anywhere in the string), but not the regex-evalut
Pick one:
$foo = quotemeta("bar.baz");
if ($other =~ m/\Q$foo/)
(Both are actually the same thing, just done at different times.)