On 10/22/07, Jeff Pang <[EMAIL PROTECTED]> wrote:

> the best way is to create an object then multi-process can share this
> object,since object is only located in its own namespace.
>

Sorry I expressed this statement wrong.In fact even under modperl
multi-process can't share an object unless you use some ways like
share memory.
I want to say is,under modperl,mulit-scripts in the same process can
load the module only one instance.When one of the scripts say 'use
mymodule' the first time, mymodule has been loaded into the current
process,and modify %INC variable.When other scripts in the same
process say 'use mymodule' again,it will check %INC by the first,and
if it find mymodule has already existed,it skip the loading.So you
don't need to keep one module in multi-scripts in each process,this
save the memory.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to