Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Hashes of Hashes of Arrays? Is it possible?

by Kc12349 (Monk)
on Sep 08, 2011 at 18:49 UTC ( #924904=note: print w/replies, xml ) Need Help??


in reply to Hashes of Hashes of Arrays? Is it possible?

See my similar code below and it's output from dumping the data. Give us a large sample of your code and run a dump using Data::Dumper or a similar module to show us the data structure generated. You'll be able to get a little more help then.

my %HOH; $HOH{parent}{child1} = 'value1'; push @{ $HOH{parent}{child2} }, 'value2'; push @{ $HOH{parent}{child2} }, 'value3'; ### output: { parent => { child1 => "value1", child2 => ["value2", "value3"] }, }

My preference is the Data::Dump module used as below for your hash.

use Data::Dump qw(pp); say pp(\%HOH);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2022-01-22 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?