Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: hexChapter 5
Function Reference
Next: Reference: int
 

index

index string, substr, [start]

Returns the position of the first occurrence of substr in string. The start, if specified, specifies the position to start looking in the string. Positions are integer numbers based at 0. If the substring is not found, the index function returns -1.


Previous: Reference: hexPerl in a NutshellNext: Reference: int
Reference: hexBook IndexReference: int