in reply to Creating dynamic hash names

I would suggest it's time to look into object oriented programming.