my $statement = "INSERT INTO event_details (location, datum, djs, eintritt, eventname, beschreibung) values (?,?,?,?,?,?);"; my $sth = $dbh->prepare($statement) or die $dbh->errstr(); $sth->execute('PM ',$1, 'verschiedene','verschieden 6-10 Euro',$2,$3) or die $dbh->errstr();