Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Tied multidimensional hashes

by Limbic~Region (Chancellor)
on Oct 13, 2006 at 13:52 UTC ( #578139=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: Tied multidimensional hashes
Download Code
Re^3: Tied multidimensional hashes
by MidLifeXis (Prior) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://578139]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-25 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls