while(my @tmp = $sth->fetchrow_array){ $array[$i] = \@tmp; $i++; }