http://www.perlmonks.org?node_id=535207


in reply to Re: Catching DBI (or other) errors
in thread Catching DBI (or other) errors

If I were going to do something like this, I'd probably do something more like:
$query->execute and $sql_stage++; $query2->execute and $sql_stage++;
etc.