Re: $r->dir_config->(un)set issue...

2002-08-01 Thread Geoffrey Young
> > The following pices of code do not work: > > - > code sample 1 > -- > > 1. sub handler { > 2.my $r = instance Apache::Request(shift); > 3. > 4.$r->dir_config(MyVar => undef); > 5. > 6.$r->dir_config->unset("My

Re: $r->dir_config->(un)set issue...

2002-07-31 Thread simran
On Wed, 2002-07-31 at 21:33, Geoffrey Young wrote: > > > simran wrote: > > > Does that mean that > > > > $r->dir_config is not the same as $r->server->dir_config ? > > > > A PerlUnsetVar would indeed be very handy... as would PerlUnsetEnv :-) > > I looked into implementing that the last ti

Re: $r->dir_config->(un)set issue...

2002-07-31 Thread Geoffrey Young
simran wrote: > Does that mean that > > $r->dir_config is not the same as $r->server->dir_config ? > > A PerlUnsetVar would indeed be very handy... as would PerlUnsetEnv :-) I looked into implementing that the last time it came up but IIRC it would take redoing the merge routines - from w

Re: $r->dir_config->(un)set issue...

2002-07-31 Thread Stas Bekman
simran wrote: > Does that mean that > > $r->dir_config is not the same as $r->server->dir_config ? not the same, $r->dir_config is a merge of the Location section setting with Server/Vhost settings, $r->server->dir_config is only for Server/Vhost settings. ___

Re: $r->dir_config->(un)set issue...

2002-07-30 Thread simran
Does that mean that $r->dir_config is not the same as $r->server->dir_config ? A PerlUnsetVar would indeed be very handy... as would PerlUnsetEnv :-) On Wed, 2002-07-31 at 12:50, Stas Bekman wrote: > s/$r->dir_config/$r->server->dir_config/? > > What's really needed is probably PerlUnSetE

Re: $r->dir_config->(un)set issue...

2002-07-30 Thread Stas Bekman
simran wrote: > Hi All, > > I have a situation where it is convinent for me to define a global > "PerlSetVar" in my httpd.conf and then unset it for particular virtual > hosts. > > I used to use the following configuration successfully: > >

$r->dir_config->(un)set issue...

2002-07-28 Thread simran
Hi All, I have a situation where it is convinent for me to define a global "PerlSetVar" in my httpd.conf and then unset it for particular virtual hosts. I used to use the following configuration successfully: httpd.conf -- use A