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

Re: [MacPerl] How to store hash of hashes



At 11.20 97/3/13, Baron Lowery wrote:
>I would like to store a hash of hashes along the lines of the following:
>
>%subscribers = (
>                 "name\@company.com" => {
>                        "first_name" => "John",
>                        "last_name"  => "Doe",
>                        "checkbox_1" => "1",
>                        "checkbox_2" => "0",
>                (
>                 "name2\@aCompany.com" => {
>                        "first_name"   => "Jane",
>                        "last_name"    => "Smith",
>                        "checkbox_1"   => "0",
>                        "checkbox_2"   => "1",
>                 },
>);
>
>Writing %subscribers to file stores references not the value what is
>referenced.
>How do I save the values to file, instead of the references?

MLDBM in GSAR/MLDBM-1.22.tar.gz (Aug 26 1996: 4,243 bytes)
              Transparently store multi-level data in DBM [GSAR]
              [readme (Aug 26 1996: 991 bytes) ]

This module requires Data::Dumper.

Unfortunately, I have no idea if Data::Dumper or MLDBM work on MacPerl, as
I have never done much with DBM on a Mac.  But to get the modules, go to:

        http://perl.com/CPAN/authors/id/GSAR/

Good luck,

#================================================================
Chris Nandor                                      pudge@pobox.com
PGP Key 1024/B76E72AD                           http://pudge.net/
Keyfingerprint = 08 24 09 0B CE 73 CA 10  1F F7 7F 13 81 80 B6 B6