>
> I tried that today and ran into a problem.  Sometimes it doesn't seem
> to figure out the path to the file, and if it's not in @INC in at
> Apache loadtime, the apache process will die with an error when it
> tries to reload the file.   My code looks like this:
>
> [-
>    use lib "$ENV{DOCUMENT_ROOT}/libs";
>    use XXX;
> -]
>
> Sometimes it does seem to work, but not always.  I'm not sure what's
> going on, and I'm a little tired to try debugging it right now.

You should move the

  use lib "$ENV{DOCUMENT_ROOT}/libs";

into your startup.pl file which is executed at server startup, then the lib
path should be correctly set in all situations. But you have to replace
$ENV{DOCUMENT_ROOT} with the real path, because it's not set inside
startup.pl. I use this often without problems

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to