Do you know where your variables are? | |
PerlMonks |
Re: $object->UnrelatedPackage::some_subroutine() (not for me)by tye (Sage) |
on Feb 18, 2005 at 05:13 UTC ( [id://432187]=note: print w/replies, xml ) | Need Help?? |
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:
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 Section
Meditations
|
|