The reason I want to do it this way is because the script I'm writing is to be used for files of varied length with differing frequencies of the first element occurring in the text. And the first element will vary between different files. I'm thinking this might be best done with an array of arrays, where the array is named for the first element, and the arrays underneath would have the rest of the data.