Sophie

Sophie

distrib > PLD > th > ppc > by-pkgid > 526236fbb794edfc7ba52ea7b47bcba1

perl-Hook-WrapSub-0.03-2.noarch.rpm

Description:

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

For example:

wrap_subs \&before, 'some_func', \&after;

In this case, whenever the sub named 'some_func' is called, the
&before sub is called first, and the &after sub is called afterwards.
These are both optional. If you only want to intercept the call
beforehand:

wrap_subs \&before, 'some_func';

Sources packages:

Other version of this rpm: