If you read the string $greeting from a file, how will interpolation work?
Basically, this question leads to a templating system, of which there are lots in Perl, from Interpolation over Text::Template to Template Toolkit. Depending on your output needs, there are other modules, like Email::Template and HTML::Template::Compiled.
In reply to Re: Answer: How can one re-parse(?) a string to fill in variables
by Corion
in thread How can one re-parse(?) a string to fill in variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |