in reply to Re^2: Recursive substitution
in thread Recursive substitution
You say want a regex to do something, but all of your examples place a loop outside of a substitution. Regex can't do substitutions. There's some disconnect in your explanation.
we know that recursion can do whatever iteration can;
Yes, a loop can be implemented using recursion. That doesn't mean you need recursion to count from 1 to 10. You need a loop, no matter how it's implemented.
In Section
Seekers of Perl Wisdom