home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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: rewinddir Perl in a Nutshell Next: Reference: rmdir
Reference: rewinddir Book Index Reference: rmdir

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.