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


in reply to Nested (sql) transactions

You've coded your function to be scope-bound. An alternative way is to code it to be variable-bound, like DBIx::Class::Storage::TxnScopeGuard, with interesting considerations.