in reply to Re: isa() on any scalar
in thread isa() on any scalar

One potential caveat is that can() will report false if the method in question is handled by autoload, and is not in the symbol table.

Of course AUTOLOAD is pure evil and must be stopped. (being facetious). But seriously, this can be an issue

Replies are listed 'Best First'.
Re^3: isa() on any scalar
by revdiablo (Prior) on Jun 10, 2005 at 18:41 UTC
    can() will report false if the method in question is handled by autoload

    Anybody who uses AUTOLOAD in this way should also override can appropriately.

      Thats a very good point, i hadn't really thought about overriding can().

      Then again i have learned to stay away from AUTOLOAD whenever possible.