in reply to One Dimensional Array into Two
orpush @sheet,[@array];
another way is to say:$sheet[$n]=[@array];
orpush @sheet,\@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.$sheet[$n]=\@array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: One Dimensional Array into Two
by JoeJaz (Monk) on Aug 22, 2008 at 17:51 UTC |