Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: inheritance and can

by ehdonhon (Curate)
on Aug 11, 2003 at 12:43 UTC ( #282837=note: print w/replies, xml ) Need Help??


in reply to inheritance and can

Does My::Foo::Bar implement method "a_method"?

if ( defined &{My::Foo::Bar::a_method} ) { ... }

Does generic package $x implement "a_method?"

no strict "refs"; if ( defined &{"${x}::a_method"} ) { ... }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-05-20 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?