in reply to PerlSetEnv and PerlRequire

As far as I know, PerlSetEnv variables are only set in the CGI environment during a request cycle, not when Apache is starting up. You will need to set the variable when you start Apache for your startup script to see it.

Replies are listed 'Best First'.
Re^2: PerlSetEnv and PerlRequire
by ikegami (Patriarch) on Aug 17, 2006 at 16:58 UTC

    According to the mod_perl docs,

    PerlSetEnv allows you to specify system environment variables and pass them into your mod_perl handlers. These values are then available through the normal perl %ENV mechanisms.

    Apparently, it's set for all mod_perl handlers, not just for the "CGI environment during a request cycle". (Is that a weird way of saying Apache::Registry?)

    Likeless: technically, the startup script is not a handler. The var might not be set for it. You are checking for the var in %ENV, right? You might want to ask your question on the mod_perl mailing list. That might even be something they'd want to fix.

      (Is that a weird way of saying Apache::Registry?)

      No, it's a stupid way of saying it. :)