Perl 5 doesn't make a strong distinction between subroutines and methods. The magic is really at the point of invocation, and that's whether you call the function as a method on an invocant or invoke it directly.
I don't know the particulars of this API, but if the methods are supposed to be callbacks, you may have to create a thunking closure that invokes the method on the object appropriately:
sum => sub { $obj->sum( @_ ) },In reply to Re: Missing object reference in sub
by chromatic
in thread Missing object reference in sub
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |