$template is an object. Unless it has an explicit stringification overload printing it is unlikely to do what you might hope for. Try my $str = $template->output (); print $str; instead.
In reply to Re^3: HTML::Template output to scalar or array
by GrandFather
in thread HTML::Template output to scalar or array
by jonnyfolk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |