in reply to Pushing a hashref into an array
Perhaps try printing the confusing parts with Data::Dumper?