It looks like $self is out of scope (hard to tell with out seeing surrounding code). If this is the problem, change the order of these two lines to fix:
my $user = MyClass::DBI->do_transaction(sub { my($self) = @_;
Regards,
PN5
In reply to Re: Class::DBI - Getting do_transaction() to work
by Prior Nacre V
in thread Class::DBI - Getting do_transaction() to work
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |