in reply to Append object output to scalar

It won't work because you're trying to append the return value of print (which is a status code) to $output in the first example, and you're trying to print to $output (which is a string, not a filehandle) in the second example.

You (probably) just want

$output .= $tmpl_object->output();

Replies are listed 'Best First'.
Re^2: Append object output to scalar
by mhearse (Chaplain) on Jun 23, 2005 at 14:05 UTC
    Works, thanks!