my $rows = $dbh->selectall_arrayref ('SELECT foo FROM bar WHERE quux = ?', undef, $unsafe_input);