Hi all - I'm having trouble using server->dir_config in my startup.pl to read variables set by PerlSetVar inside a Perl section. I'm using Perl 5.6.1, Apache 1.3.27, and mod_perl 1.27.
In startup.pl I have: my $file = Apache->server->dir_config("CFG") || ""; warn "Missing path to config file in httpd.conf" unless $file; In httpd.conf, this works just fine: PerlSetVar CFG /path/to/file PerlRequire startup.pl and this works fine too: PerlSetVar CFG /path/to/file <Perl> $PerlRequire = "startup.pl"; </Perl> But this does not work (CFG is not set in startup.pl): <Perl> push @{$Location{"/"}->{PerlSetVar}}, ["CFG", "/path/to/file"]; </Perl> PerlRequire startup.pl and this does not work either: <Perl> push @{$Location{"/"}->{PerlSetVar}}, ["CFG", "/path/to/file"]; $PerlRequire = "startup.pl"; </Perl> It seems like this should work, right? I'm pretty sure the syntax of the "push" is OK because if I modify the syntax I get a message: (2)No such file or directory: <Perl>: PerlSetVar takes two arguments, Perl config var and value Thanks, Larry Leszczynski [EMAIL PROTECTED]