No such thing as a small change | |
PerlMonks |
Re: Re: Extract string from rear of stringby Aighearach (Initiate) |
on Dec 28, 2001 at 02:46 UTC ( [id://134754]=note: print w/replies, xml ) | Need Help?? |
Actually, it returns the position of the rightmost
occurrence of a substring rather than a character. Though, you could use it to check for a substring that is only one character.
rindex STR,SUBSTR,POSITION rindex STR,SUBSTR Works just like index() except that it returns the position of the LAST occurrence of SUBSTR in STR. If POSITION is specified, returns the last occur rence at or before that position. -- Snazzy tagline here
In Section
Seekers of Perl Wisdom
|
|