Sounds like you need a database, not a hash.
See the Copyright notice on my home node.
Perl training courses
In reply to Re: how to define key for a hash by davorg in thread how to define key for a hash by Anonymous Monk