my $temp = $dbh->selectcol_arrayref($your_sql_statement);