in reply to Re^2: Possible Match Problem
in thread Possible Match Problem

correct. qr is better used for other things. my example was with \Q...\E, so I'll leave it at that.

Replies are listed 'Best First'.
Re^4: Possible Match Problem
by AnomalousMonk (Archbishop) on Jan 19, 2012 at 16:07 UTC
    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 ...".