Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Replace the nth occurence

by Ratazong (Monsignor)
on Nov 21, 2012 at 05:32 UTC ( #1004839=note: print w/ replies, xml ) Need Help??


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?

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004839]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2016-07-02 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (18 votes). Check out past polls.