- or download this
sub main_loop {
local($dbh->{AutoCommit}) = 0;
... lots of code here, with multiple returns
}
- or download this
my $tmp_dbh = $dbh;
$tmp_dbh->{AutoCommit} = 0; #BZZT!
- or download this
# Wishful thinking
sub main_loop {
... stuff happens ...
} continue { ... oops! I must have returned! }
- or download this
sub main_loop {
{
...
}
... restore settings here
}