$sth=$dbh->do("$sql")|| &error("Unable to perform update statement:$sql$DBI::errstr\n"); $updated=$sth->rows; $dbh->commit;