
Kanji
User
/ Moderator
Jul 31, 2000, 3:02 PM
Post #2 of 6
(1081 views)
|
|
Re: Faster Configuration files
[In reply to]
|
Can't Post
|
|
Persistance through something like mod_perl will make things truely fast (ie, load configs once, keep them in RAM until the config file changes), but if that's not an option, you could try ... <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> require '/path/to/config.pl';</pre><HR></BLOCKQUOTE> ... and in config.pl ... <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> %CONFIG = ( "name" => "...", "email" => "...", "ad nauseum" => "...", ); 1;</pre><HR></BLOCKQUOTE>
|