in reply to
Replace the nth occurence
Your code is similar to the one in the
FAQ
(except that you count downwards). And it works. What do you think is wrong with it?
Comment on
Re: Replace the nth occurence
Replies are listed 'Best First'.
Re^2: Replace the nth occurence
by
ColonelPanic
(Friar)
on Nov 21, 2012 at 08:40 UTC
Well, there is actually a much better way, as illustrated by Anomalous Monk.
When's the last time you used duct tape on a duct? --Larry Wall
[reply]
In Section
Seekers of Perl Wisdom