note
kyle
<p>This line:
<c>
push @{$records}, %record;
</c>
<p>...should be:
<c>
push @{$records}, \%record;
</c>
<p>...as you have everywhere else.
<p><strong>Update:</strong> Actually, that's not going to do what you want either. Change them all to:
<c>
push @{$records}, { %record };
</c>
<p>With what you have, you'll end up with an array of references to the same hash. You want to construct a new hash every time you [doc://push], and the above syntax will do that.
756430
756430