in reply to Re: Pattern Matching Query
in thread Pattern Matching Query

A return value of 0 from index actually means it found the substr at position 0. An rv of -1 indicates failure. Therefore:
if (index('abcdefghijklm', $sorted_values) > -1) { # Do stuff... }

-Blake