There's more than one way to do things | |
PerlMonks |
Re: How do I pass $1 to s///?by ikegami (Patriarch) |
on Jan 06, 2006 at 16:56 UTC ( [id://521539]=note: print w/replies, xml ) | Need Help?? |
Your $1 gets interpolated too early. What you really need is a templating system, but you can use the following in the meanwhile:
(Insert notice of hazards of using eval EXPR here.)
In Section
Seekers of Perl Wisdom
|
|