On Fri, 2003-08-01 at 16:59, Jean-Sebastien Guay wrote:
> Unfortunately, this doesn't seem to work. Even if I put the PerlSetVar
> statement before my PerlRequire statement like so:
>
> PerlSetVar SCRIPT_ROOT "D:/htdocs"
> PerlRequire "D:/htdocs/_startup.pl"
>
> the module, which is then loaded from _startup.pl, sees only undef when I
> try to print $ENV{SCRIPT_ROOT};
You're thinking of PerlSetEnv. PerlSetVar values are retrieved
differently. Take a look at this:
http://perl.apache.org/docs/1.0/guide/config.html#PerlSetEnv_and_PerlPassEnv
Note that you can also just do this:
<Perl>
$MyConfig::SCRIPT_ROOT = 'foo';
</Perl>
And then in your module:
my $root = $MyConfig::SCRIPT_ROOT;
- Perrin