Sometimes, an example works best.
>perl -e "print index 'abcdcda', 'c'" 2 >perl -e "print rindex 'abcdcda', 'c'" 4
In reply to Re: what is the difference between index and rindex
by ikegami
in thread what is the difference between index and rindex
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |