my $statement2 = "UPDATE $table SET uniq = $uniq WHERE name = $hash_ref->{name}"; $sth = $dbh->prepare( $statement2 ); unless( $sth->execute() ){ die main::writeDbhError("Fehler bei: $statement2"); }