|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Recursive substitutionby bobf (Monsignor) |
| on Nov 10, 2009 at 04:27 UTC ( #806118=note: print w/ replies, xml ) | Need Help?? |
|
I like to take a very simple approach to such things, since the tricky methods usually confuse me when I come back to it 6 months later and have to modify it somehow. :-)
Or, if you prefer more of the 1-liner feel:
I'm sure it is possible to do this in the regex itself (probably with /e). I'm sure other monks will enlighten both of us. Update: I changed approaches mid-code and forgot to remove the superfluous m//. These solutions are not very perlish.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||