in reply to Replace the last letter
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
|
|---|