in reply to
Best method for matching strings
If all you need to do is match a constant string, (as opposed to a pattern) then it's probably easier and faster to use
index
. Remember that index returns -1 on failure, since zero is a valid offset.
Comment on
Re: Best method for matching strings
In Section
Seekers of Perl Wisdom