in reply to Re: Printing a strange 1 on page.
in thread Printing a strange 1 on page.

OK, thanks, but how can I avoid the 1 of been printed to the page?

Replies are listed 'Best First'.
Re^3: Printing a strange 1 on page.
by NetWallah (Canon) on Dec 15, 2011 at 04:58 UTC
    From the TT Docs:
    By default, the processed template output is printed to STDOUT. The process() method then returns 1 to indicate success.
    Just get rid of the "print" in front of "$tt->process(..", and your "1" will disappear.

                "XML is like violence: if it doesn't solve your problem, use more."