in reply to One Dimensional Array into Two

I know two ways to achieve it. If you just want to store it, you may say:
push @sheet,[@array];
or
$sheet[$n]=[@array];
another way is to say:
push @sheet,\@array;
or
$sheet[$n]=\@array;
In the second way, when you change the values in @array, the corresponding value in @sheet will also be changed; but the first way wont.

Replies are listed 'Best First'.
Re^2: One Dimensional Array into Two
by JoeJaz (Monk) on Aug 22, 2008 at 17:51 UTC
    I like this break-down of the different ways to accomplish this. Thank you.