For some reason, I am having problems with the DBI descriptor. Basically, what happened was that I made a special connection function in the perl module and switched from it:
do 'foo.pl'
to
use Foo;
and then i do
$dbh = Foo->connect;
And now for some reason I keep getting the error:
It is not possible to find the method of "rollback" the method of the object through the package "Foo" on the page .. /Foo.pm line 171.
So, it is strange that $ dbh is definitely not Foo, it is just defined in foo. Anyway, so far I have not had any problems. Any ideas what?
Edit : @Axeman: connect does not exist in the original. Before we got the line we used as follows:
do 'foo.pl'; $dbh = DBI->connect($DBConnectString);
and so connect something like this
sub connect { my $dbh = DBI->connect('blah'); return $dbh; }
source share