Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Answer: How can one re-parse(?) a string to fill in variables

by Corion (Patriarch)
on Oct 31, 2013 at 14:07 UTC ( [id://1060578]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1060578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found