in reply to Getting Record Set via DBI into an Array of Arrays
while (my $row = $sth->fetch()){ push @{ $data[0] }, $row->[0]; push @{ $data[1] }, $row->[1]; }
Note that passing scalars to Data::Dumper produces better results.
print Dumper(\@data);
Update: Fixed missing arrows too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting Record Set via DBI into an Array of Arrays
by overrider (Acolyte) on Apr 13, 2009 at 07:30 UTC | |
by ikegami (Patriarch) on Apr 13, 2009 at 13:44 UTC |