in reply to Re: Apache::Registry and main package
in thread Apache::Registry and main package
Thanks guys. Advice taken! I am very very new to writing modules, and I want to try and make them mod_perl compatible which should be fun.
I will pass the hash to the function as I normally would however what would be the best way to share a hash between the Module and the main script?
If I declare it in the module and then return a Hash Ref to the calling script?
I am guessing the same applies if I want to share a Database Handle between them? Just get one of them to pass a reference across?
Any advice would be greatly appreciated!
Al
|
|---|