in reply to hash pointing to AoA

You can create a HoA just like you create an AoA. If the As in the HoA happen to be AoAs, that's just fine and dandy. You'll end up with a HoAoA.

Keep in mind that you can't store an array into a hash anymore than you can store an array into an array. You can only store a reference to an array.

my %HoAoA = ( foo => [ [ 1,2 ], [3,4] ], bar => [ [ 5,6 ], [7,8] ], ); use Data::Dumper; print Dumper \%HoAoA;