You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jeff <eb...@crist.com> on 2002/06/29 18:31:08 UTC
CGI.pm and PerlRun
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
Posted by Stas Bekman <st...@stason.org>.
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 Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com