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

my $sth = $dbh->prepare("SELECT kunde,umsatz FROM db_kundenumsatz"); my (@kunde, @umsatz,$kunde, $umsatz); while (($kunde, $umsatz) = $sth->fetchrow_array()){ push @kunde $kunde; push @umsatz, $umsatz; } my @data=\@kunde,\@umsatz);
I think this is what you want, you could of course use anonymous arrays in @data ie push @data->[0] $kunde... However I left it this way for clarity