Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Tied multidimensional hashes

by Limbic~Region (Chancellor)
on Oct 13, 2006 at 13:52 UTC ( [id://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

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-19 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found