in reply to Re: How do I delete the last instance of a word from a string?
in thread How do I delete the last instance of a word from a string?
my $ri = rindex($string,$word); substr($string,$ri,length($word)) = '' if $ri > -1;
- Ant
- Some of my best work - (1 2 3)
|
|---|