You can use perldoc -f <function> to find out how substr and rindex work. You can also experiment to see what happens if $find isn't in the string.substr( $string, rindex( $string, $find ), 1, $replace );
Cheers - L~R
In reply to Re: Replace the last letter
by Limbic~Region
in thread Replace the last letter
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |