in reply to Printing a strange 1 on page.

"The process() method then returns 1 to indicate success", which you proceed to print. (Don't print it if you don't want to see it.)

Replies are listed 'Best First'.
Re^2: Printing a strange 1 on page.
by Anonymous Monk on Dec 15, 2011 at 04:14 UTC
    OK, thanks, but how can I avoid the 1 of been printed to the page?
      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."