in reply to Perl hashes: is there some way of adding more data to the value associated with an existing key?

Use hash of arrays, see perldsc. Example:
my %h = ( 1 => ['A', 'B'], 2 => ['B'], 4 => ['X'], 5 => ['V'], ); print join(' ', @{ $h{1} }),"\n";
  • Comment on Re: Perl hashes: is there some way of adding more data to the value associated with an existing key?
  • Download Code