That's what hashes do. They don't allow duplicate keys. If you really need to store multiple scalars for a single key, you need advanced data structures, such as a hash of array references.
If you explained the problem you're trying to solve, though, and not the code you've tried to use to solve it, people may be able to give you better answers.
In reply to Re: Looping through a hash where some keys are the same
by chromatic
in thread Looping through a hash where some keys are the same
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |