http://www.perlmonks.org?node_id=756463


in reply to Re: pushing onto array is not working as intended..
in thread pushing onto array is not working as intended..

Seems to me you fixed the wrong line in your update. I consider
%record = (); ... push @{$records}, { %record };
much worse than
my %record; ... push @{$records}, \%record;