[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] How to store hash of hashes



Chris Thorman writes:
|First, I would suggest using a DBM file to store the top-level hash.
|Then just use join/split to store the sub-hashes as values in the DBM file.
|If that approach doesn't appeal to you, I would suggest doing something
|using map, join, and split to convert the entire structure to a string
|and back again.

There are modules that handle all this for you. FreezeThaw and MLDBM
are two that come to mind, both on CPAN. There may be others there too.

Brian