in reply to Is there a way to dynamically copy subroutine from one module to another?

You can't copy a subroutine, but you can alias them. Which is what Exporter does.
*{"A::doit"} = \&{"D::doit"};
works for me.
  • Comment on Re: Is there a way to dynamically copy subroutine from one module to another?
  • Download Code

Replies are listed 'Best First'.
Re^2: Is there a way to dynamically copy subroutine from one module to another?
by OlegG (Monk) on Feb 12, 2011 at 17:48 UTC
    In my real problem I can't modify any class which is parent to C. Because this will break all.