#connection creation goes here $dbh->do("INSERT INTO TABLE (COL1, COL2) VALUES('Val1', 'Val2')")or die "I failed to insert";