Interesting. I was just trying to use that a couple of days ago. It didn't work on the several platforms I tried, though I rarely have 5.8 or later to use anywhere:
$ perl -e "Lie->Pkg::Meth()" Can't locate object method "Meth" via package "Pkg::Meth" at -e line 1 +. $
Notice it tried to look for Pkg::Meth::Meth() not Pkg::Meth().
No, I haven't looked any further. It was easy enough to work around, either as you noted or, better, using can(). And, no, it didn't work with a blessed object any better than it did with a class name.
Update: The two copies of Perl I have handy right now are both 5.6.1 (Zaurus Linux and FreeBSD) and they both have this bug.
- tye
In reply to Re: $object->UnrelatedPackage::some_subroutine() (not for me)
by tye
in thread $object->UnrelatedPackage::some_subroutine()
by Thilosophy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |