http://www.perlmonks.org?node_id=653867


in reply to Mulitple values for a key in a hash

perldsc tutorial will help you understand Perl data structures, especially HoH (HASHES OF HASHES).