Perl Monk, Perl Meditation | |
PerlMonks |
Re: opposite of index+rindex? How-to? Needed?by davido (Cardinal) |
on Aug 30, 2019 at 02:57 UTC ( [id://11105284]=note: print w/replies, xml ) | Need Help?? |
String::Index provides ncindex and ncrindex, which I think provide what you're after.
The needle string ('c' in this case) can be more than one character, in which case it will find the position of the first character in $string that isn't found in the string of search characters. Dave
In Section
Seekers of Perl Wisdom
|
|