Sean P Quinlan wrote: > On Wed, 2007-01-10 at 00:53 -0500, Sean P Quinlan wrote: > > >>OK, this is probably just a dumb programmer error on my part, but it >>is now almost 1am for me and I can't find anything in the docs. >>I have a mod_perl (Apache & mod_perl 2 on SuSE 10.1) module destined >>to handle a requests for a set of possible URLs under a location. >> >> SetHandler modperl >> PerlResponseHandler CAS::Apache > > > > Turns out you need to SetHandler to perl-script ... even if you aren't > using any perl 'scripts'.
that's not true - you need to set the handler to perl-script if you want the tied print() interface to work: > my $html = $forms->$page(); > print $html; see http://perl.apache.org/docs/2.0/user/config/config.html#C_SetHandler_ specifically this part about perl-script: "STDIN and STDOUT get tied to the request object $r, which makes possible to read from STDIN and print directly to STDOUT via CORE::print(), instead of implicit calls like $r->puts()." HTH --Geoff