title: Setting AutoCommit and begin_work/rollback are the same?
body: <p>This question is about Perl DBI (I use it with MySQL).</p>
  
  <p>I want the following code:</p>
  
  <pre>{
    local $dbh->{AutoCommit} = 0;
    ...
    if(...) {
      $dbh->rollback;
    }
    ...
  }</pre>
  
  <p>Will it work as expected? (I mean no superfluous commit after rollback) Is $dbh->{AutoCommit} compatible with $dbh->begin_work and $dbh->rollback?</p>