The Wayback Machine - https://web.archive.org/web/20160215063615/http://perldoc.perl.org:80/functions/index.html

Perl version

Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

index

Perl 5 version 22.0 documentation

Please note: Many features of this site require JavaScript. You appear to have JavaScript disabled, or are running a non-JavaScript capable web browser.

To get the best experience, please enable JavaScript or download a modern web browser such as Internet Explorer 8, Firefox, Safari, or Google Chrome.

Recently read

index

  • index STR,SUBSTR,POSITION

  • index STR,SUBSTR

    The index function searches for one string within another, but without the wildcard-like behavior of a full regular-expression pattern match. It returns the position of the first occurrence of SUBSTR in STR at or after POSITION. If POSITION is omitted, starts searching from the beginning of the string. POSITION before the beginning of the string or after its end is treated as if it were the beginning or the end, respectively. POSITION and the return value are based at zero. If the substring is not found, index returns -1.

 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.