Hi,
I have started to use the fast template HTML::Template::Compiled, but it
gives errors. Here is a test:
#The program:
use HTML::Template::Compiled;
my $ht = HTML::Template::Compiled->new(filename => 'index.html', path =>
'e:/web/presaromana/test');
$ht->param({title => 'this is the title', desc => 'the desc',});
print $ht->output;
#The template index.html:
first line
<TMPL_VAR NAME=title>, <TMPL_VAR NAME=desc>
<TMPL_INCLUDE NAME=second.html>
last_line
#The template second.html:
middle line
#The result printed:
Use of uninitialized value in concatenation (.) or string at
E:/usr/site/lib/HTML/Template/Compiled.pm line 531.
first line
this is the title, the desc
middle line
last_line
As you may see, the result printed is OK, but it also prints that error at
the top. Am I missing setting some variables or something like that?
Thanks.
Teddy
|