Ok, thank you. That example from perlref is what I was searching for, but it
seems that it can't do what I want. (I didn't know that programs that use
'require' don't share the memory).
I will try to use Config::Simple.
I need to store a few hashrefs in the memory.
Thank you very much.
Teddy
Octavian Rasnita wrote:
> Thank you, I have done so, but I still have a problem.
>
> I used to run those config files using do() for getting the data based on a
> variable, for example:
>
> my $ref = do("$language.ini");
>
> And depending on the value of the $language variable, it is launched
Thank you, I have done so, but I still have a problem.
I used to run those config files using do() for getting the data based on a
variable, for example:
my $ref = do("$language.ini");
And depending on the value of the $language variable, it is launched a
different .ini file.
I don't know how t
Octavian Rasnita wrote:
> Hi,
>
> I have a config file which contains a hash ref and I get its values by using
> the do() function.
>
> I don't think this is the best solution, because the speed might be slow.
> That file is accessed on each access to each page.
>
> Is it possible to store tha
ts it...
Denis
-Ursprüngliche Nachricht-
Von: Octavian Rasnita [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 26. August 2005 16:04
An: modperl@perl.apache.org
Betreff: memory resident config hash
Hi,
I have a config file which contains a hash ref and I get its values by using
the do() functio
Hi,
I have a config file which contains a hash ref and I get its values by using
the do() function.
I don't think this is the best solution, because the speed might be slow.
That file is accessed on each access to each page.
Is it possible to store that hash in the memory somehow?
I can store t