in reply to Re^2: sub by reference - assigning to an object?
in thread sub by reference - assigning to an object?
otherwise you could store a wrapper to the getDBH() invocation:$parser->{ 'getDBH' } = \&common_class::getDBH;
$parser->{ 'getDBH' } = sub { $common->getDBH; };
|
|---|