libhook-wrapsub-perl

Module to wrap subs with pre- and post-call hooks
  https://metacpan.org/release/Hook-WrapSub
  0
  no reviews



Hook::wrapsub lets you wrap a function, providing one or both of functions that are called just before and just after, whenever the wrapped function is called.

the wrap_subs() function enables intercepting a call to any named function; handlers may be added both before and after the call to the intercepted function.