Hi everyone,

I would like to know if there is an elegant way to override a method with prejudice: "No, I don't want anything related to this method inherited from the parent - I'd like to rewrite it from scratch."

What I can think of is this:

around old_method => sub{
   ...
   $self->new_method_by_different_name; #ignore $orig
}

Now any old modifiers will be skipped.  Is this the best approach?

Kate

Reply via email to