$arrayRef = $dbh->selectrow_arrayref("SELECT password FROM table WHERE username = '$username'") or die "Error: " . $dbh->errstr;