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:
@arr[0] = (1,2,3); @arr[1] = (4,5,6); $index=1; print "$arr[$index][2]";
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]