in reply to Class data scope?
Class data lasts as long as there is a process in memory that uses the module?
There's a couple of things wrong with the question itself.
Modules are files which are executed by use or require. It's not an ongoing process, so saying "uses" instead of "used" makes no sense.
Memory isn't shared between Perl processes unless you explicitly use a mechanism to do that. (I don't actually know any, but if the OS provides a mechanism, a module could be used to take advantage of it.)
And finally, class data is no different than any other kind of data. It'll last as long as the variable or object that holds it last, typically, but nothing's stopping the variable (though magic) or object from reflecting some form of persistent storage (like a database or file) or remote storage (like another process).
What are you trying to do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class data scope?
by leocharre (Priest) on Jun 12, 2008 at 18:46 UTC | |
by psini (Deacon) on Jun 12, 2008 at 18:58 UTC | |
by ikegami (Patriarch) on Jun 12, 2008 at 19:03 UTC |