$sql = qq{INSERT INTO Karten_ID (ID,Edition,Kartenname) values (NULL,$2,$1)}; $sth = $dbh->prepare( $sql ); $sth->execute();