On Mon, 2004-04-12 at 18:24, Matthew Haines wrote:
> The &generate_my_table sub is full of print statements that print
> straight to STDOUT.

That is unfortunate.  Not to worry though -- [% PERL %] blocks
automatically tie STDOUT and capture the output.  Try this:

[% PERL %]
my $dbh = $stash->get('dbh');
generate_my_table($dbh, 'some other stuff');
[% END %]

perldoc Template::Manual::Directives for more info on PERL blocks.

- Perrin


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to