Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Recursive substitution

by ikegami (Pope)
on Nov 10, 2009 at 18:16 UTC ( #806301=note: print w/replies, xml ) Need Help??


in reply to Re^4: Recursive substitution
in thread Recursive substitution

I want recursion.

Sorry, but you can't execute another s/// without /e, (?{}) or (??{}). Recursion is out.

As for a solution without recursion, I don't know of any.

Replies are listed 'Best First'.
Re^6: Recursive substitution
by JadeNB (Chaplain) on Nov 10, 2009 at 19:33 UTC
    Sorry, but you can't execute another s/// without /e, (?{}) or (??{}).
    Since the regex engine isn't re-entrant, I can't execute another s/// even with /e, (?{}), or (??{}), right?
      That is my understanding. You can have recursive patterns, but I don't think you can enter another match when one is already in progress.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-02-29 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?