$row1 = $dbh->selectrow_array('select count(*) from table_one'); $row2 = $dbh->selectrow_array('select count(*) from table_two');