Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: isa() on any scalar

by shemp (Deacon)
on Jun 10, 2005 at 18:10 UTC ( [id://465627]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://465627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-19 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found