Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Possible Match Problem

by Marshall (Prior)
on Jan 19, 2012 at 08:30 UTC ( #948715=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^3: Possible Match Problem
Re^4: Possible Match Problem
by AnomalousMonk (Abbot) 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 ...".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948715]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2014-09-30 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (384 votes), past polls