in reply to Help with HoAoA
fetchrow_arrayref lists a caveat, its that it reuses the reference, so all your array refs are pointing to the same one, its common pitfall, see http://search.cpan.org/perldoc/DBI#fetchrow_arrayref
You want to use fetchrow_array and push ...\@array or store a copy with push ... [ @$ref ]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help with HoAoA (fetchrow_arrayref reuse)
by OfficeLinebacker (Chaplain) on Jun 20, 2013 at 14:04 UTC |