Aspect and Sub::WrapPackages might also be worth a look.
In reply to Re^2: Add Code to functions in File by adrianh in thread Add Code to functions in File by EchoAngel