in reply to Re^2: how to parse a UniProt Flat file
in thread how to parse a UniProt Flat file

In a hash, there is a one-to-one correspondence between keys and values. If you want to have a one-to-many mapping, you can set the value for a given key to an anonymous array, i.e.

%my_hash = (); $my_hash{key1} = []; $my_hash{key1}->[0] = 'value';

Obviously, you can shorten that up. For for info on arrays, hashes, etc. check out perldata and, for the fancy stuff, perldsc.