if ($str2 =~ /\Q$str1\E/) #\Q...\E means like qr #don't interpret characters #like '(' within $str1 #use them verbatim
To avoid misunderstanding, you might also consider removing "like qr" from the foregoing comment, or possibly changing to something like "means,as when used in qr, to avoid interpreting characters like ...".
In reply to Re^4: Possible Match Problem
by AnomalousMonk
in thread Possible Match Problem
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |