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

{ package C; sub doit { no strict 'refs'; local *{"A::doit"} = \&{"D::doit"}; shift->SUPER::doit; } }
  • 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 13, 2011 at 10:28 UTC
    This really helpfull. It seems I can solve my problem with this technique. Thank you.