Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: inheritance and can

by ehdonhon (Curate)
on Aug 11, 2003 at 12:43 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-19 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found