http://www.perlmonks.org?node_id=578139


in reply to Re: Tied multidimensional hashes
in thread Tied multidimensional hashes

xdg,
I am afraid I have no idea how either of the modules you suggested would come close to accomplishing what davis is wanting to do.
tie my %flat, "FlatHash"; $flat{Monkey}{habits} = "Eating"; $flat{monkey}{habits} = "Scratching"; warn Dumper(\%flat); __END__ Ultimately I'd like the final datastructure to be something like: $VAR1 = { 'monkey' => { 'habits' => ['Eating', 'Scratching'] } };

To me it sounds like a variation on Data::MultiValuedHash or less likely Hash::MultiKey except that the top level is also case insensitive.

Cheers - L~R

Replies are listed 'Best First'.
Re^3: Tied multidimensional hashes
by MidLifeXis (Monsignor) on Oct 13, 2006 at 18:05 UTC

    I am afraid I have no idea how either of the modules you suggested would come close to accomplishing what davis is wanting to do.

    Perhaps something in DBM::Deep using filter_(fetch|store)_(key|value) would work. Severly untested, and I see the smoke from dragons rising through the fog, but I think it would be possible.

    --MidLifeXis