> On Thu, 6 Jul 2000, Geoffrey Young wrote:
>
> > Sorry to bring up PerlAddVar again, but this time I have a legitimate bug.
> > It stems from what I reported last time about items in Apache::Table not
> > being visible outside a <Location> directives:
>
> See the section on DIR_MERGE in the Eagle book. It just needs someone to
> write that code for PerlAddVar/PerlSetVar.
>
But there is dir_merge code for those variables, this works for me:
PerlSetVar MyVar foo
<Location /test/>
PerlSetVar MyVar bar
SetHandler "perl-script"
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
test/foo:
my $r = shift;
$r->send_http_header('text/plain');
print $r->dir_config('MyVar');
% GET http://localhost/test/foo
bar
I don't know about PerlAddVar, haven't tested Geoff's examples yet,
but it should work as well since those vars all end up in
perl_dir_config->vars
--
Eric