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 From: "Michael Peters" <[EMAIL PROTECTED]> > If these are just .ini files, then why don't you use something like > Config::Simple to create a object from which to read the data. You could > then create a wrapper class that would give access to this object as a > singleton. Load the class on server startup and initialize the object > there too. As long as you don't change the data it should be stay shared > by all of your apache children. > > Once you do a 'require' in a process the data is no longer shared > between processes. Another request that needs the same configuration > data that is handled by a different apache process will need to do the > same 'require' thus increasing it's unshared memory, etc. > > Sometimes this is necessary, but it should be avoided if possible. How > many of these language specific configs do you have? Do you know which > ones are more likely to be used? If you do then preload as many as > possible ahead of time.