Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Convert a string to a hexadeci ...Return lower-case version of a ... (Berikutnya)
Functions for SCALARs or strings

Find a substring within a string

Daftar Isi

  • index STR,SUBSTR,POSITION

  • index STR,SUBSTR

    The index function searches for one string within another, but withoutthe wildcard-like behavior of a full regular-expression pattern match.It returns the position of the first occurrence of SUBSTR in STR ator after POSITION. If POSITION is omitted, starts searching from thebeginning of the string. POSITION before the beginning of the stringor 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.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Convert a string to a hexadeci ...Return lower-case version of a ... (Berikutnya)