in reply to $object->UnrelatedPackage::some_subroutine()
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $object->UnrelatedPackage::some_subroutine() (not for me)
by Thilosophy (Curate) on Feb 18, 2005 at 06:05 UTC | |
|
Re^2: $object->UnrelatedPackage::some_subroutine() (not for me)
by itub (Priest) on Feb 18, 2005 at 14:12 UTC | |
by tye (Sage) on Feb 18, 2005 at 17:43 UTC |