|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Evaluate in a substituteby nashdj (Friar) |
| on Oct 17, 2003 at 07:12 UTC ( [id://299972]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||