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. | [reply] |
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.
| [reply] |
| [reply] |
<Perl>
$My::ENV->{one} = 1;
$My::ENV->{two} = 2;
</Perl>
In startup.pl:
print "$My::ENV->{one}\n";
print "$My::ENV->{two}\n";
| [reply] [d/l] [select] |