in reply to Multidimensional Array

The reason it's saying "Not an ARRAY reference" is because it's not an array reference. Add the missing sigils, and the error disappears:
... @a_a = (\@a_4, \@a_3); @a_b = (\@a_2, \@a_a); ...