in reply to Re^3: Packages with subs using fully qualified class names, not always their own. (monkey patch)
in thread Packages with subs using fully qualified class names, not always their own.

$_extend from Object::Util:

my $object = OtherPackage->new(...); $object->$_extend({ some_method => sub { ... }, other_method => sub { ... }, }); return $object->some_method( $object->other_method );
  • Comment on Re^4: Packages with subs using fully qualified class names, not always their own. (monkey patch)
  • Select or Download Code

Replies are listed 'Best First'.
Re^5: Packages with subs using fully qualified class names, not always their own. (monkey patch)
by LanX (Saint) on Jul 01, 2017 at 17:26 UTC
    ?

    Only code and no message?

    anyway, from the doc:

    > Object::Util - a selection of utility methods that can be called on blessed objects

    I'm not using it on blessed objects or classes, just plain packages, in case you meant it as an alternative.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!