my $keys = $count_stmnt->fetchall_arrayref(); my @vals = map {$_->[0]} @{$keys};