Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by tangent (Priest)
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];

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038718]
help
Chatterbox?
[Lady_Aleena]: A major project in the bag and done.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-05-29 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?