in reply to Ref to an object instance method
The trick is to wrap the method invocation in a subroutine:
my $handler = MIS_SAX_Parser->new(sub { $cb->printit });
Basically, you're creating a curried version of your method invocation, since $cb->printit is to Perl mostly MIS_PrintStatus::printit( $cb ).
|
|---|