I'd like to know a short way to substitute the last occurence of a substring within a string. For instance,
$string = "one two three two four";
$string =~ s/two //
would return "one three two four".
What would return:
"one two three four"?
Thanks,
Paul.