So, let's reverse this.
I have a module that will be used in perl.
I want all subs in the module to share the stagte of one variable...in my
case @context.
I also want any changes to @context to only effect the current user/request
under mod_perl.
What's the best approach?
1. declare @context with 'my' in the package
2. add this to your module:
sub clean_context { @context = () }
3. add this to your config file:
PerlCleanupHandler MyApp::clean_context
I think that'll do the trick...
---
Badai Aqrandista
Cheepy (?)
_________________________________________________________________
REALESTATE: biggest buy/rent/share listings
http://ninemsn.realestate.com.au