I have some HTML::Template-using code which runs happily enough in
CGI::Scripts to generate webpages.

Following the suggestion in the docs for speed and efficiency, pages are
emitted using print_to, like so:

  $self->output(print_to => *STDOUT);

Today I'm trying to get the site running under mod_perl.  The pages only
appear if I change the above line to:

  print $self->output;

That makes sense: mod_perl aliases CORE::print to $r->print, so that
printing goes not to stdout but to wherever it is that mod_perl wants
it.

However that loses the advantage of print_to.  Is this just something I
have to put up with, or is there something other than *STDOUT that can
be used with print_to under mod_perl?

Thanks.

Smylers
-- 
GBdirect
http://www.gbdirect.co.uk/



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to