It sounds like you want a hash of arrays...
push @{ $hashOfStuff{$key} }, $newThing;Or possibly a hash of hashes so you don't have to search the array...
$hashOfStuff{$key}{$newThing} = undef #That the key exists is sufficie +nt if (exists $hashOfStuff{$key}{$testThing}) { ... }
In reply to Re: Load a file into hash with duplicate keys
by Anonymous Monk
in thread Load a file into hash with duplicate keys
by sophix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |