convenientstore has asked for the wisdom of the Perl Monks concerning the following question:
@AoA = ( [2, 3], [4, 5, 7], [0] ); print $AoA[1][2]; 7 print @AoA; ARRAY(0x83c38)ARRAY(0x8b194)ARRAY(0x8b1d0) for $i (1..10) { @array = somefunc($i); $AoA[$i] = \@array; # WRONG! }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while going through perldsc tutorial...
by philcrow (Priest) on Oct 16, 2007 at 19:41 UTC | |
by convenientstore (Pilgrim) on Oct 16, 2007 at 21:27 UTC | |
|
Re: while going through perldsc tutorial...
by naikonta (Curate) on Oct 17, 2007 at 08:31 UTC |