I've used this when dealing with code that used the above trick to get a custom result without having to go and create a special method for it.
This is fine for a quick and dirty solution, but I would be wary of using it for anything else.
Perl's object system is somewhat broken as it is, so abusing it like this is just (IMO of course) a bad idea.
In reply to Re^3: $object->UnrelatedPackage::some_subroutine()
by stvn
in thread $object->UnrelatedPackage::some_subroutine()
by Thilosophy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |