http://qs1969.pair.com?node_id=46277


in reply to question mark in there

Just use \Q to quote out the '?' character:
abowley@lave:~$ perl -e '$a = $b = "word?dude"; print "$a $b\n" if $a +=~ m/\Q$b/' word?dude word?dude