Perhaps try printing the confusing parts with Data::Dumper?
In reply to Re: Pushing a hashref into an array by gmargo in thread Pushing a hashref into an array by rastoboy