in reply to Not an ARRAY reference Error Help!

Did you consider the possibility that a hashref might not be an array reference?