in reply to Re: Attempt to uninherit method
in thread Attempt to uninherit method

Keep in mind that will prevent calling the method when it's implemented via AUTOLOAD:
package Bar; use strict; use warnings; our @ISA = "Foo"; sub foo; sub AUTOLOAD { print "whoo hoo, ".(our $AUTOLOAD)."!\n" }

Replies are listed 'Best First'.
Re^3: Attempt to uninherit method
by runrig (Abbot) on Dec 21, 2007 at 05:49 UTC
    Yep, and for my purposes (see post elsewhere in this thread), that's fine with me. Although according to the Liskov Substitution Principle, I'd be throwing exceptions that I shouldn't be (if the method is called independently though I don't expect it to be), which is a bad thing, although I don't mind in this case.

    And AUTOLOAD kind of breaks the whole "can()" thing anyway...(or is it the other way round?)