|Problems? Is your data what you think it is?|
Using string literal in regexpby tomazos (Deacon)
|on Jun 16, 2006 at 15:52 UTC ( #555824=perlquestion: print w/replies, xml )||Need Help??|
tomazos has asked for the wisdom of the Perl Monks concerning the following question:
I have a scalar string..
..and I want to incorporate it into a regular expression such that the characters of the string will be matched literally, no matter what characters they are.
What is the correct way to interpolate a string literal into a regular expression?
Back to Seekers of Perl Wisdom