I did such a thing simply by writing a lot of lines describing a broad branched hash into a text file:
$myHash{mySubHash1Key1}{mySubHash2Key1}[myColumn1]{key1} = 'This is my first value that I want to store';
$myHash{mySubHash1Key1}{mySubHash2Key1}[myColumn1]{key2} = 'This is my second value that I want to store';
...


and for restoring just call this file from your script. Apparently about 200 of these lines load "in no time".

HTH?

Detlef Lindenthal




Louis Pouzin wrote:

Hi,

I have a data base of IP/domain names that I maintain as plain text files. The size is 
only a few hundred K octets.

I use a hash (of of hashes) for various searches. Building the whole hash takes a few 
seconds.

As the ratio of updates/searches is in the order of 1/15, I'd like to restore the 
whole hash from a file, in view of shortening response time when doing searches.

Is there some routine/package such as "save/restore %H,FileHandle" ?

Thanks



Reply via email to