Bug#468651: ITP: libsub-wrappackage-perl -- add wrappers around subroutines in packages.
Package: wnpp
Severity: wishlist
Owner: "Jaldhar H. Vyas" <jaldhar@debian.org>
* Package name : libsub-wrappackage-perl
Version : 1.2
Upstream Author : David Cantrell <david@cantrell.org.uk>
* URL : http://search.cpan.org/dist/Sub-WrapPackages/
* License : GPL + Artistic
Programming Lang: Perl
Description : add wrappers around subroutines in packages.
This is mostly a wrapper around Damian Conway's Hook::LexWrap module
The differences are:
* no exporting
We don't export a wrap() function, instead preferring to do all the
magic when you "use" this module. We just wrap named subroutines,
no references.
* the subs and packages arrayrefs
Any subroutine mentioned in the "subs" parameter will be wrapped.
Any packages mentioned in the "packages" parameter will have all their
subroutines wrapped.
* wrap_inherited
In conjunction with the "packages" arrayref, this wraps all calls
to inherited methods made through those packages. If you call
those methods directly in the superclass then they are not
affected.
* parameters passed to your subs
Your pre-wrapper will be passed the wrapped subroutine's name, and all the
parameters to be passed to it.
I'm packaging this as it is a build-dependency to
libcgi-applications-plugin-perl.
Reply to: