I _think_ you can tie *YOURGLOB, 'Apache' $self->output(print_to => *YOURGLOB); #maybe print_to => \*YOURGLOB ???
Let me know if that works, Thx, -Josh -----Original Message----- From: Smylers [mailto:[EMAIL PROTECTED]] Sent: Friday, December 06, 2002 11:39 AM To: HTML::Template users Subject: [htmltmpl] mod_perl and print_to 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 ------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. ------------------------------------------------------- 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
