|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: regex search failsby friedo (Prior) |
| on Mar 12, 2009 at 14:41 UTC ( [id://750174]=note: print w/replies, xml ) | Need Help?? |
|
Try print if /\Q$pattern/.
Since your pattern contains the literal string '$testVar', using the \Q escape will prevent it from being interpolated in the match.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||