Checking for a substring with index()
Wednesday January 24, 2007
Looking for a quick way to see if a substring exists within another string, but don't want the hassle of a regular expression? The index() function takes a string, and returns the value of a simple substring within the string. Find out more about Perl's index() function in this quick tutorial.
