Do you know where your variables are? | |
PerlMonks |
Re: "exact" pattern matchingby moritz (Cardinal) |
on Jun 08, 2008 at 21:24 UTC ( [id://690961]=note: print w/replies, xml ) | Need Help?? |
Others have rightly mentioned index and eq.
There's also quotemeta and m/\Q$regex\E/ for escaping strings in a regex. (If you don't do anything else, the regex doesn't have any benefit over index, though. Except perhaps ease of use).
In Section
Seekers of Perl Wisdom
|
|