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
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to