in reply to Re^3: Looping through a hash where some keys are the same
in thread Looping through a hash where some keys are the same
The value could be an arrayref, as you say, or it could be a hashref. Advantage of a hash ref is you don't have to check for duplicates, since duplicates aren't allowed in a hash. Personally I use hashes a lot more than arrays.