You've got the answer of "if AutoCommit is turned off...". So here's how to turn AutoCommit on (which will automatically commit
all inserts/updates/deletes).
$dbh = DBI->connect($data_source, $user, $pass, { AutoCommit => 1 } );
1 is on, 0 is off.
This is from
Programming the Perl DBI from O'Reilly. It can also be found in
perldoc DBI, or
here.
UPDATE: I forgot to mention, this is considered a
bad thing to do these days. But, given caution, it can be a nice feature to use on purpose. Unfortunately, the system I'm on has AutoCommit turned on by default, and that's bitten me a couple of times... :-(
MungeMeister