error using HTML::Template::Compiled

"Octavian Rasnita" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <008101c5ad49$de271bd0$c2a2b451@ted>
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




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
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.