william ross sent the following bits through the ether:
> $tt->process($templatefile, $output)
> || die "failed to process '$templatefile': $Template::ERROR\n";
Interestingly, I've always used the error() method, which seems to
work for me:
# process input template, substituting variables
$template->process($input, $vars)
|| die $template->error();
The TT docs seem to advocate the two, but looking at the source I'm
unclear that both are always set. I think this needs to be cleared
up. In the meantime, does using the error() method work for you?
Leon
--
Leon Brocard.............................http://www.astray.com/
Nanoware...............................http://www.nanoware.org/
... As I said before, I never repeat myself