my $table = "spieler"; my $statement = "SELECT name, passwd from $table"; my $sth = $dbh->prepare($statement) || die $dbh->errstr; my $rv = $sth->execute; my $hash_ref = $sth->fetchrow_hashref; print "STH:" . Dumper( $sth );