problem in patching..

Amit Marathe <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Hi, 
I hv installed HTML-Template-2.7, further i tried to use it via my
program it is not working correctly.

I tried to see the e.g. program then it also wont show any o/p in the browser. 
I hv checked, the prog is executable with proper headers
My perl code is as given below....

#!/usr/bin/perl -w
use HTML::Template;
use Data::Dumper;
print "Content-type: text/html \n\n";
# open the html template
my $template = HTML::Template->new(filename => 'testTemplate.tmpl');
# fill in some parameters
$template->param(HOME => 'My HOME');
$template->param(PATH => 'My HOME PATH');
#print "Dumper is " . Dumper[$template];
# send the obligatory Content-Type and print the template output
#print "Content-Type: text/html\n\n",
print $template->output;
exit 0;

My template is  'testTemplate.tmpl'  & it is written as follows  :

<html>
<head><title>Test Template</title>
<body>
My Home Directory is <TMPL_VAR NAME=HOME>
<p>
My Path is set to <TMPL_VAR NAME=PATH>
</body>
</html>

############
 What might be the Error ...........
Can u give me some idea.. 

Thanks & Regards 
AmitSM.


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.