in reply to Problem with nested array/hashes

This is pretty simple, especially if you're just adding them manually. Might help to look at it formatted:

my @AoH = ( { 'key1' => 'value1', 'key2' => 'value2', 'key3' => [ # aref starts here { 'var1' => 'val1', 'var2' => 'val2', }, { new_hash_key1 => 'val1', new_hash_key2 => 'val2' }, ], }, );

Replies are listed 'Best First'.
Re^2: Problem with nested array/hashes
by Dandello (Monk) on Jan 19, 2016 at 01:42 UTC

    This: $AoH[0]{key3}[2]{another} = 'way'; was the clue I needed, thanks.

    Adding them manually wasn't an option as the actual number of added hashes is dependent on a separate list.