> Henrique Pantarotto wrote: > > I'm having some trouble with CGI.pm working with mod_perl2. > > What trouble are you having?
logs/error_log reported this: [Fri May 30 09:21:20 2003] [error] [client 10.29.31.104] Can't locate Apache.pm in @INC (@INC contains: /home /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache2 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /usr/local/apache/ /usr/local/apache/lib/perl) at /usr/lib/perl5/5.8.0/CGI.pm line 162. I noticed CGI.pm does a "require Apache", and I don't seem to have this Apache.pm file. > > This guy clearly says > > that CGI.pm is incompatible with mod_perl2: > > > > http://marc.theaimsgroup.com/?l=apache-modperl&m=103619647305553&w=2 > > That was 7 months ago. A lot has changed. I confess I didn't try to hack this in to much detail. I searched the mailing-list and I found many threads saying bad things about CGI.pm and mod_perl2, so I thought about asking this list this very specific question. > You could try CGI::Simple, which has the same (OO) interface as CGI.pm. That's a really cool hint. Thanks!! I've neved used CGI::Simple before, and I'll take a look at it. Although cpan.org/modules/by-module/CGI/Cgi-Simple-0.06.readme warns about not using this module with production environment.. but they all say that right? Hmm.. little red devil in left shoulder yells "YES!", "GO FOR IT", little blue angel in another shoulder says "no henrique, think". > > Seriously, does mod_perl2 offer much more > > features and benefits then mod_perl1? I really only care for speed and > > stability for simple perl scripts that use CGI/DBI/DBD::mysql modules. > > It offers many new features, which are described here: > http://perl.apache.org/docs/2.0/user/intro/overview.html#What_s_new_in_mod_perl_2_0 > > The most common reasons for switching at this point are to get filtering > or to get multi-threading on Win32. Don't need Win32. ;-) > > Is it okay if I use mod_perl and apache 1.x today, or it's better to > > move to 2.x already? > > Many people are stil developing on 1.x, including me, and there is a new > release of it due out any day. Go ahead, if that makes you more > comfortable. I think I'll do that. Thanks a lot for sharing your experience with me. Thanks, Henrique.