in reply to Re: How can I print out part of the matrix
in thread How can I print out part of the matrix

But that means you're making many calls to print. Why not just:
print "@{$_}[1, 2, 3, 5, 9, 10, 38, 126]\n" for @aoa;

Abigail