in reply to better way to do N to 1 string mapping
But what's wrong with %category growing larger? If you definitely want to look items up by item, this is pretty much as good as it gets! It's not duplication; it's what you want!
In Section
Seekers of Perl Wisdom