CGI.pm and PerlRun

2002-06-29 Thread Jeff
Title: Message



I am gradually 
moving to mod_Perl using Apache::PerlRun instead of Apache::Registry. I am 
also considering switching from cgi-lib.pl to CGI.pm however I hear CGI.pm takes 
longer to load. Will CGI.pm automatically be cached, thereby eliminating 
the performance hit, by handling the scripts with Apache::PerlRun or do I have 
to preload the modules at server startup using PerlModule 
CGI;

If I preload, do I 
have to put a PerlModule CGI; within every VirtualHost directive or just 
once in the httpd.conf and it will apply to all 
virtualhosts.

And finally if I 
want to run CGI.pm in CGI-LIB compatibility mode, do I have to use a startup 
file instead or can I say:

PerlModule CGI 
qw(:cgi-lib); I'm guessing I have to put it in a startup 
file??

Thanks



Re: CGI.pm and PerlRun

2002-06-29 Thread Stas Bekman

Jeff wrote:
 I am gradually moving to mod_Perl using Apache::PerlRun instead of 
 Apache::Registry.  I am also considering switching from cgi-lib.pl to 
 CGI.pm however I hear CGI.pm takes longer to load.  Will CGI.pm 
 automatically be cached, thereby eliminating the performance hit, by 
 handling the scripts with Apache::PerlRun or do I have to preload the 
 modules at server startup using PerlModule CGI;
  
 If I preload, do I have to put a PerlModule CGI; within every VirtualHost  
directive or just once in the httpd.conf and it will apply to all 
 virtualhosts.
  
 And finally if I want to run CGI.pm in CGI-LIB compatibility mode, do I 
 have to use a startup file instead or can I say:
  
 PerlModule CGI qw(:cgi-lib);  I'm guessing I have to put it in a startup 
 file??

Jeff, you will find answers to 99% of your questions here:
http://perl.apache.org/release/docs/1.0/guide/index.html

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com