Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
No such thing as a small change
 
PerlMonks  

Re: problem installing HTML::Template

by Khen1950fx (Canon)
on Oct 10, 2012 at 14:36 UTC ( #998236=note: print w/ replies, xml ) Need Help??


in reply to problem installing HTML::Template

Give this a try:

#!/usr/bin/perl BEGIN { $| = 1; $^W = 1; } use strict; use autodie; use warnings; use HTML::Template; my $that_famous_string = 'Hello, world!'; my $tmpl = "<TMPL_VAR NAME=THAT_FAMOUS_STRING>\n"; my $template = HTML::Template->new_scalar_ref( \$tmpl, strict => 1, debug => 1, ); $template->param(THAT_FAMOUS_STRING => $that_famous_string); print "Content-Type: text/html\n\n"; print $template->output;


Comment on Re: problem installing HTML::Template
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (18)
As of 2014-04-16 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (427 votes), past polls