note
afoken
<p>Even better: Let DBI do that for you: <c>connect</c> with <c>RaiseError => 1</c> and every failing DBI method will <c>die</c> automatically. If you expect that a function may die, wrap in in an <c>eval { BLOCK }</c>. This is the usual way to handle transactions: Code that may fail and the final <c>commit</c> are wrapped in <c>eval</c>, followed by a <c>rollback</c> when <c>$@</c> is true.</p>
<p>Alexander</p>
<div class="pmsig"><div class="pmsig-747201">
--<br>
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
</div></div>
771042
771062