while (my $retval = $sth->fetchrow_arrayref()){ push @retary, [$retval]; }