Re: memory resident config hash

2005-08-28 Thread Octavian Rasnita
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

Re: memory resident config hash

2005-08-27 Thread Michael Peters
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

Re: memory resident config hash

2005-08-27 Thread Octavian Rasnita
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

Re: memory resident config hash

2005-08-26 Thread Michael Peters
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

AW: memory resident config hash

2005-08-26 Thread Denis Banovic
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

memory resident config hash

2005-08-26 Thread Octavian Rasnita
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