Just another Perl shrine | |
PerlMonks |
Re: How can I use $1 in an assigned stringby Wonko the sane (Deacon) |
on May 28, 2003 at 16:01 UTC ( [id://261346]=note: print w/replies, xml ) | Need Help?? |
A more robust way to do this would be something like this, that uses a reusable generic function for the actual replacements. Especially if your template string is going to be dynamic.
Wonko
In Section
Seekers of Perl Wisdom
|
|