in reply to Crazy array of references behavior

Reread the DBI docs on fetchrow_arrayref():
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.

Replies are listed 'Best First'.
Re: Re: Crazy array of references behavior
by Anonymous Monk on Dec 01, 2003 at 16:02 UTC
    Thanks man, I see what's going on now - I'm just storing a bunch of references to one single array. Time for a rethink about how to do this :)