[htmltmpl] Trailing 1
Brought to you by:
samtregar
From: Barry M. <bmi...@th...> - 2007-04-16 19:28:01
|
This probably has a very simple solution. I am returning $template->output from a sub and then printing the results. Every time, there's a trailing '1' at the end of the data. How do I eliminate it? index.tmpl: <html> <head> <title>Hello</title> </head> <body> Hello World! </body> </html> print Show_HTML(); sub Show_HTML { my $template = HTML::Template->new(filename => 'index.tmpl'); return $template->output; } Result: Hello World!1 |