On Wed, 21 Dec 2005 10:06:29 -0600 "Harry Zhu" <[EMAIL PROTECTED]> wrote:
> > sub handler { > my $r = Apache2::Request->new(shift); > my %ins = &processInput($r); > ... > $r->print($html); > return OK; > } > > Can't locate auto/Apache2/Request/print.al in @INC (@INC contains: > /www/modperl /usr/local/lib/perl5/5.8.7/i686-linux > /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7/i686-linux > /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl . > /usr/local/apache2) at /www/modperl/Sys/Handler.pm line 81 > > if change "$r->print" to "print", it works fine. A quick browsing > through the MP2 documents for the example handler, some using print > while others using $r->print (without Apache2::Request), does > $r->print under Apache2::Request? > You probably don't want to do that. Apache2::Request is a wrapper for libapreq for parsing query parameters. You want to do this instead: sub handler { my $r = shift; my $req = Apache2::Request->new( $r ); my %ins = &process_input($r); $r->print..... } You'll also need to use or preload Apachd2::RequestIO as this provides the print function. Hope this helps. --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://www.wiles.org ---------------------------------