I’m trying to use the HTML::Template package, I got it all set up with a
template web page and I have set up the parameters in my perl script and
it runs fine when I run it from the command line but when I load it
using my browser the variable don’t get filled in, the tmpl tags are
gone but my vaules don’t get filled in.  Any help would be much
appreciated :-)
 
Code:
<------------------------------>
my $template = HTML::Template->new(filename=>'weather.html');
$template->param('CurrTime', $currTime);
$template->param('CurrTemp', $currTemp);
$template->param('HiTemp', $hiTemp);
$template->param('LoTemp', $loTemp);
$template->param('ImgLoc', $imgLoc);
$template->param('CurrCon', $currCon);
 
#Display template page
print "Content-Type: text/html\n\n";
print $template->output;
 
Thanks,
Shawn Bower
 


Reply via email to