- Name: perl-Hook-WrapSub
- Version: 0.03
- Release: 2
- Epoch: 0
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url: http://search.cpan.org/dist/Hook-WrapSub/
- Summary: Hook::WrapSub - wrap subs with pre- and post-call hooks
- Architecture: noarch
- Size: 11158
- Distribution: PLD 3.0 (Th)
- Vendor: PLD
- Packager: PLD bug tracking system ( http://bugs.pld-linux.org/ )
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';
- OptFlags: -O2 -fno-strict-aliasing -fwrapv -fsigned-char
- Cookie:
- Buildhost: ppc.th.pld-linux.org
Sources packages:
Other version of this rpm: