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

[MacPerl] How to store hash of hashes



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?