![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Evaluate in a substituteby nashdj (Friar) |
on Oct 17, 2003 at 11:12 UTC ( [id://299972]=note: print w/replies, xml ) | Need Help?? |
IO::String is useful for this kind of task.
Update: The regular expression can be simplified: s/<# {(.*?)} #>/.... As Abigail implies, the braces aren't needed in the eval. Nor in this case do they need to be escaped. - nashdj
In Section
Seekers of Perl Wisdom
|
|