in reply to Pushing a hashref into an array

You're making a classic mistake, you are not providing a code sample that demonstrates your problem. I suspect you are not coping with scoping. Please see How (Not) To Ask A Question