The perl interpreter has a one global symbol table called the stash where
all global variables are referenced by package and by variable name.
Since the interpreter does not go away when a script is recompiled, neither
does the stash or any of the items contained within it. Some programmers
are probably using this as a feature, and therefore it is unlikely that it
will change.
This is really standard perl stuff and it has nothing to do with
Apache::Registry in particular. It is just something the average perl
programmer does not come across since we usually load the interpreter, load
a program, run the program, exit the interpreter.
check out:
http://thingy.kcilink.com/modperlguide/porting/Global_Variables_Persistence.html
hth,
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
"Keith G. Murphy" wrote:
> This is probably a very basic question, understood by everyone but...
>
> Why, when I change a script loaded under Apache::Registry, and the
> script (verifiably) reloads, do global variables not reinitialize?
>
> I'm running Apache 1.3.9, mod_perl 1.21 on a Debian GNU/Linux system.
>
> Am I the only one that finds it odd that the variables hang around
> unchanged when the script that they pertain to is recompiled?
>
> Perhaps this is stated or implied in the documentation; I didn't see it.