redss has asked for the wisdom of the Perl Monks concerning the following question:
I want to use a 2 dimensional array in a manner that is easy to initialize, but am unable to get it to work. here is what I'm attempting:
Any idea why this doesn't work? I've also tried copying the array to another array to no avail, for example @anotherarray=@arr[1]@arr[0] = (1,2,3); @arr[1] = (4,5,6); $index=1; print "$arr[$index][2]";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: 2 dimensional array question
by reasonablekeith (Deacon) on Sep 05, 2005 at 13:58 UTC | |
by redss (Monk) on Sep 05, 2005 at 14:50 UTC | |
Re: 2 dimensional array question
by Roger (Parson) on Sep 05, 2005 at 14:13 UTC | |
Re: 2 dimensional array question
by ysth (Canon) on Sep 05, 2005 at 14:26 UTC | |
by redss (Monk) on Sep 05, 2005 at 14:51 UTC | |
Re: 2 dimensional array question
by blazar (Canon) on Sep 05, 2005 at 14:06 UTC | |
Re: 2 dimensional array question
by GrandFather (Saint) on Sep 05, 2005 at 19:06 UTC | |
Re: 2 dimensional array question
by trammell (Priest) on Sep 05, 2005 at 16:31 UTC | |
Re: 2 dimensional array question
by planetscape (Chancellor) on Sep 06, 2005 at 10:54 UTC |
Back to
Seekers of Perl Wisdom