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
In reply to Re: Building an array of hashes from database
by mpeppler
in thread Building an array of hashes from database
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |