There are a few options:


PerlSwitches

Now you can pass any Perl's command line switches in httpd.conf using the PerlSwitches directive. For example to enable warnings and Taint checking add:

  PerlSwitches -wT

As an alternative to using use lib in startup.pl to adjust @INC, now you can use the command line switch -I to do that:

  PerlSwitches -I/home/somehost/perl

You could also use -Mlib=/home/somehost/perl which is the exact equivalent as use lib, but it's broken on certain platforms/version (e.g. Darwin/5.6.0). use lib is removing duplicated entries, whereas -I does not.


Or you could use a startup.pl that has use lib (from http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Handler_Modules):

....tell mod_perl that /home/httpd/httpd-2.0/perl/ is in @INC, via a startup file which includes just:

  use lib qw(/home/somehost/perl);
  1;

and loaded from httpd.conf:

  PerlRequire /home/somehost/startup.pl

Reply via email to