skip()
is exported from Test::More
, which you might have loaded since your executable is named t/tester.pl
.
What does ref($cursor)
yield you? It should be a blessed MyModule::Cursor
object, but the "invalid object
" error might be suggesting the object was not constructed properly.
EDIT: perldiag gives another clue: "in cleanup
" signifies that a problem was encountered by the object's destructor. Assuming you don't already have a destructor in the object, create a MyModule::Cursor::DESTROY
method that Data::Dump
s the object to see what it looks like at this time.
A concise snippet of example code that exhibits this behaviour would be very helpful.