in reply to Building an array of hashes from database
which creates a reference to a new hash each time around.push(@records, {%data});
Alternatively, put my %data inside the while (fetchrow_array()) loop - this will also create a new hash each time through the loop.
Michael
|
|---|