in reply to Class::DBI - Getting do_transaction() to work
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
|
|---|