in reply to Basic regex question
$string = quotemeta('$foo'); /^$string/; # Or $string = '$foo'; /\Q$string/; [download]