in reply to looping in 2d array

using a 2 dimensional array. In one dimension are the words in English, in the second are all the grammar codes.
This terse description leads me to believe a hash may be easier to work with than an array-of-arrays.

More info in the form of http://sscce.org would be helpful.