At 3:51 PM -0400 5/9/01, Morbus Iff wrote:
>** The 700k file is an XML file, read in by XML::Simple. XML::Simple
>can cache that file into memory. Is this how I should do it? Or
>should I load the file from my startup.pl script so that the file is
>shared amongst all the apache children? If that's the case, how
>would I dynamically reload it?
>
I've done similar things....
Basically, I loaded the file into $My::Data via the startup.pl.
Then I did a
$SIG{'USR2'} = sub {
open(FILE,'file');
$My::Data = process_file(\*FILE);
close(FILE);
};
Rob
--
As soon as you make something foolproof, someone will create a better fool.