http://www.perlmonks.org?node_id=1007778


in reply to Passing a reference from a subroutine.

Try changing:

return @\@AoA;

to

return \@AoA;

...roboticus

When your only tool is a hammer, all problems look like your thumb.