Dandello has asked for the wisdom of the Perl Monks concerning the following question:
@AoH = ({'key1' => 'value1', 'key2' => 'value2', 'key3' => [{'var1 => +'val1', 'var2' => 'val2'}, NEED TO ADD ANOTHER HASH HERE],} );
I can add another 'key'=>'value', to the first hash (the one with key1), that's not a problem, but I'm having trouble figuring out how to add more hashes to the array in key3. (Indicated by 'NEED TO ADD ANOTHER HASH HERE'
I didn't create the original code but I need to add more to it and the new hash is generated from other variables. This is a much simplified example.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with nested array/hashes
by choroba (Cardinal) on Jan 18, 2016 at 23:46 UTC | |
|
Re: Problem with nested array/hashes
by AnomalousMonk (Archbishop) on Jan 19, 2016 at 00:57 UTC | |
|
Re: Problem with nested array/hashes
by stevieb (Canon) on Jan 18, 2016 at 23:43 UTC | |
by Dandello (Monk) on Jan 19, 2016 at 01:42 UTC |