in reply to "exact" pattern matching

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).

Replies are listed 'Best First'.
Re^2: "exact" pattern matching
by my_nihilist (Sexton) on Jun 08, 2008 at 21:38 UTC
    hmmm...i see a pattern.

    thanks.