Keep It Simple, Stupid | |
PerlMonks |
Re: Push hash reference on array problemby imp (Priest) |
on May 23, 2007 at 20:15 UTC ( [id://617107]=note: print w/replies, xml ) | Need Help?? |
In the loop you are pushing a reference to the same hash onto the list repeatedly, then deleting the data in that hash at the end of the loop.
Declare %dfdata_row in the body of the loop, and don't assign () to it after pushing it onto the list.
In Section
Seekers of Perl Wisdom
|
|