So I should stop using SUPER and should definitely avoid TheDamian's NEXT?
Of course not.
SUPER:: is part of perl's OO system, and a built in pseudo-package. So as far as I am concerned, it is a different story.
As for NEXT, thats up to you if you want to use it. No doubt that TheDamian knows what he is doing, but that's a pretty crazy module. Personally I just try to avoid designing anything which would need it in the first place.
However, what the OP was actually talking about was basically abusing a hole in perl's module/object system (at least thats what I see it as). The OP is actually talking about bascially using this to allow any random blessed object to become the first argument in a function, not a method. This is different from the controlled method dispatching of SUPER and NEXT.
In reply to Re^3: $object->UnrelatedPackage::some_subroutine()
by stvn
in thread $object->UnrelatedPackage::some_subroutine()
by Thilosophy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |