my $thisdata = []; my $sql = "select users from my_table where (number = 100) and (serie = 450)"; $thisdata = $dbh->exec_select( $sql );