Полезная информация

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: rewinddirChapter 5
Function Reference
Next: Reference: rmdir
 

rindex

rindex str, substr, [position]

Works just like index except that it returns the position of the last occurrence of substr in str (a reverse index). The function returns -1 if not found. position, if specified, is the rightmost position that may be returned - how far in the string the function can search.


Previous: Reference: rewinddirPerl in a NutshellNext: Reference: rmdir
Reference: rewinddirBook IndexReference: rmdir