in reply to Data Structure Question

perldsc - check out hashes of arrays in particular.