Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How to add to hash of a hash of an array. Confused.com!

by tangent (Curate)
on Jun 13, 2013 at 10:19 UTC ( #1038718=note: print w/ replies, xml ) Need Help??


in reply to How to add to hash of a hash of an array. Confused.com!

Where you have

$hash{'A1'}{'B2'} = {'C1' => [arrayitem1]};
you are clobbering $hash{'A1'}{'B2'}{'C2'}

Try changing it to:
$hash{'A1'}{'B2'}{'C1'} = [arrayitem1];


Comment on Re: How to add to hash of a hash of an array. Confused.com!
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2015-05-23 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (466 votes), past polls