go ahead... be a heretic | |
PerlMonks |
Re: replacing variable in regex - probs with special chars?by integral (Hermit) |
on Jan 31, 2003 at 07:43 UTC ( [id://231538]=note: print w/replies, xml ) | Need Help?? |
Surely the code can be simplified by using a s///g at the top level instead of looping?
The obvious limitation over the original solution is that it doesn't allow one to loop, but perhaps this would work?
In Section
Seekers of Perl Wisdom
|
|