Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: checking a method is not subclassed (in new)

by tye (Sage)
on Feb 02, 2006 at 16:14 UTC ( [id://527361]=note: print w/replies, xml ) Need Help??


in reply to checking a method is not subclassed

sub Baz::new { ... croak ... if $class->can("foo") != \&Baz::foo; ... }

?

I doubt I would encourage such tactics.

- tye        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found