in reply to Newbie: 'For loops'

Even though we don't use C-style for loops unless necessary, the use of multidimensional arrays is normal. The array indexing syntax you have used is acceptable in Perl and it imitates C syntax. This leads me to believe that you don't understand the concept of multidimensional arrays and perhaps even the possibility of using variables to specify the indices of an array.

Based on my conclusion, I suggest you read about multidimensional arrays in general.

Also, in Perl, multidimensional arrays are really arrays of references to arrays, so you'll find information on Perl's multidimensional arrays not in the data type documentation, but in the Perl references documentation.