Just another Perl shrine | |
PerlMonks |
Re: string matchingby Anno (Deacon) |
on Sep 21, 2007 at 21:26 UTC ( [id://640443]=note: print w/replies, xml ) | Need Help?? |
You could use quotemeta() to make the regex work, as has been noted. Since you are searching for a fixed string, the index() function offers itself as a simpler tool that does the job. There is no need to quote anything because index() treats all characters equal.
Anno
In Section
Seekers of Perl Wisdom
|
|