in reply to Re: How can one re-parse(?) a string to fill in variables
in thread How can one re-parse(?) a string to fill in variables
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.
|
|---|