Re: my $var at file scope and __DATA__ sections under mod_perl

2002-01-14 Thread Perrin Harkins
> Each time, the warn is for 'blah' because the value 'test' > is never retained in $var. Is this intended behaviour? No, that should create a closure that keeps the value of $var. Are you sure these requests are all going to the same instance? > Weird, it's like the handle just > mysteriously

my $var at file scope and __DATA__ sections under mod_perl

2002-01-13 Thread Rob Mueller (fastmail)
I've had a little bit of a look, but can't find anything in the mod_perl guide about this. Basically it seems to me that 'my' variables at the package level don't retain their value under mod_perl.   For instance, consider the following mod_perl handler.   package My::Module; my $var;   sub