in reply to Seeking clarification on 'local' in Class::DBI txn code
And, since autocommit is used as a boolean value, undef is treated in the same manner as zero, so it's like setting it to zero.local $class->db_Main->{ AutoCommit }; $class->db_Main->{ AutoCommit } = undef;
Personally, I like to be explicit about such things, so I would say
But that's just me. It's not necessary for any purpose other than to avoid having someone ask this question. In my opinion, though, that's a worthwhile reason to do it.local $class->db_Main->{ AutoCommit } = 0
------------ :Wq Not an editor command: Wq
|
|---|