in reply to Multiple values per key in a hash
The previous comments answer your question technically, and point you at the documentation that explains how to do what you're trying to do. However, I'd just like to point out that there are two features of Perl that are the foundation of complex data structures; you need to learn and understand these well:
It also helps to draw a picture at the start, and use Data::Dumper after that.
Edit: fixed grammar in 1st para.
|
|---|