Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 contemplating the Monastery: (16)
As of 2015-07-31 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls