On Mon, 24 Sep 2007 06:08:45 -0400
[EMAIL PROTECTED] wrote:
> Hello,
>
> I have a module,which loads large data into memory.
>
> my $data = Mymodule->new;
>
> this will take some ms to be finished.
>
> So I think I can create this object at startup time,and share the
> $data acrosss all apache child processes.
>
> Is it possible?How can I do it?
Yeah you can do this in a <Perl> section at startup and
your children can then use it. I'm assuming here that the
info in $data doesn't change or that you're ok with having
to restart Apache to see the changes.
-------------------------------------------------------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com