Well, sorry. I've forgotten to put 'my' in front of those varibles in
the example.  In the actual code it is there (I use strict :)

The problem is not there.

Andrei

On Tue, Nov 16, 1999 at 05:02:49PM +0100, Gerald Richter wrote:
> > In Myhandler::handler I do 
> > $myvar1 = $r->dir_config('MyVariable');
> > $myvar2 = $r->dir_config('MyVariable2);
> > 
> > if($myvar1){
> > ## do stuff for first virtual server
> > }else{
> > ## do stuff for the second one
> > }
> > 
> If $myvar1 is a global it will hold it's content forever... 
> 
> so try
> 
> my $myvar1 = $r->dir_config('MyVariable');
> my $myvar2 = $r->dir_config('MyVariable2);
> 
> Gerald

-- 

Reply via email to