for my $key (@keys) { $sth->execute($key); my @columns = $sth->fetchrow(); push(@entries, \@columns); }