$variable = reverse $string; $variable =~ s/$tofind/$replace/; $variable = reverse $string; [download]
In reply to Re: Replace the last letter by Roger in thread Replace the last letter by Anonymous Monk