my $object = OtherPackage->new(...); $object->$_extend({ some_method => sub { ... }, other_method => sub { ... }, }); return $object->some_method( $object->other_method );
In reply to Re^4: Packages with subs using fully qualified class names, not always their own. (monkey patch)
by tobyink
in thread Packages with subs using fully qualified class names, not always their own.
by SimonSaysCake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |