in reply to dbi_query_iterator and my misunderstanding the $row
I think this is because fetchrow_arrayref uses the same location in memory every time, as the DBI docs state:
Note that the same array reference is returned for each fetch, so don't store the reference and then use it after a later fetch. Also, the elements of the array are also reused for each row, so take care if you want to take a reference to an element.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: dbi_query_iterator and my misunderstanding the $row
by jfroebe (Parson) on Mar 01, 2007 at 22:04 UTC | |
by japhy (Canon) on Mar 02, 2007 at 13:43 UTC | |
by jfroebe (Parson) on Mar 02, 2007 at 15:41 UTC |
In Section
Seekers of Perl Wisdom