in reply to saving nested arrays in a hash

Are you using strict in your real code? Doing so would reveal a lot of errors that you're making.

array1_ref = \@array1;

This is not even valid Perl.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.