http://qs1969.pair.com?node_id=1222715

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Couldn't find the answer to this anywhere, but it should be a fairly simple question for an expert (which I am not).

If I have an array @x, that I have, say, initialized up to $x[5][11], is there some way of looping over the rows (and then the columns within each row) without setting up the classic for loops with counters such as $i and $j? I read somewhere that if you are using counters in perl, you are not doing it right, so I am wondering about other syntax (foreach?) that might do that.