in reply to Getting Record Set via DBI into an Array of Arrays

my @bong; while (@data = $sth->fetchrow_array()){ push @bong, \@data; }

Replies are listed 'Best First'.
Re^2: Getting Record Set via DBI into an Array of Arrays
by ikegami (Patriarch) on Apr 13, 2009 at 07:11 UTC

    Each element of @bong will be the same since you're always taking a reference of the same array.

    And the data wouldn't be oriented as desired even if you fixed that.

    And talk about confusing, calling @bong the OP's @data, and calling @data something that isn't the OP's @data.