On Fri, 13 May 2005, Igor Chudov wrote: > --- Randy Kobes <[EMAIL PROTECTED]> wrote: > > > On Fri, 13 May 2005, Igor Chudov wrote: > > > > > --- Tom Schindl <[EMAIL PROTECTED]> wrote: > > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > > > Hash: SHA1 > > > > > > > > If you have installed Apach2::Request or you don't > > > > need CGI.pm any more. > > > > > > Sorry, I use CGI.pm for everything. > > > > > > > You are also failing to tell us what mp2 and apache2 > > > > you are running so everything I can do is guessing. > > > > > > Perl 5.8.6 > > > httpd-2.0.54 > > > mod_perl-2.0.0-RC6 > > > libapreq2.so.2.1.0 > > > CGI.pm v 3.09 > > > > What if you try adding, in CGI.pm, a line > > require Apache2::RequestIO; > > in the same block that Apache2::RequestRec, etc. are > > being require()d. > > Randy, it worked!!! Yay! I am happy! > > Can you tell me why it helped? I will appreciate.
One of the design considerations of mod_perl-2 is to cut down on memory usage by splitting functionality across different modules, so that a user only loads the ones needed. Thus, you need to require Apache2::RequestIO in order to get the "read" method. It's sometimes not apparent which module is needed for which method; for this, ModPerl::MethodLookup: http://perl.apache.org/docs/2.0/api/ModPerl/MethodLooup.html can help. -- best regards, randy