At 10:43 +0000 11/24/03, Ged Haywood wrote:
On Mon, 24 Nov 2003, Elizabeth Mattijsen wrote:
 > >  > is there a way to find out whether a prefork MPM is being used in
 >  > mod_perl while running a Perl script?
 >use Config;  ?
 I thought Config.pm was specific for your Perl installation, and had
 > nothing to do with mod_perl?
Aren't we getting away from the original intention a little if we need
to know within a script under what model we're running it?  It gives a
whole new dimension to the word "portable".

Most users don't need to know. I would like to supply my general purpose modules, which can run in a stand-alone script, under mod_perl 1 or mod_perl 2, with sensible default behaviour. So that you don't need to make changes to your config when you switch from prefork to threaded MPM's.


For example, CGI.pm provides the:

use CGI (-compile :all)

way to have everything loaded. Now, in my opinion, CGI.pm should do The Right Thing in a prefork MPM environment and make that behaviour the _default_. So you don't have to know about it as a developer.


Hope this makes my intention clear...



Liz


--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to