Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Hook-LexWrap | Distribution: SUSE Linux Enterprise 15 SP6 |
Version: 0.26 | Vendor: openSUSE |
Release: bp156.3.1 | Build date: Sat Jul 22 11:24:30 2023 |
Group: Development/Libraries/Perl | Build host: goat52 |
Size: 39526 | Source RPM: perl-Hook-LexWrap-0.26-bp156.3.1.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: http://search.cpan.org/dist/Hook-LexWrap/ | |
Summary: Lexically scoped subroutine wrappers |
Hook::LexWrap allows you to install a pre- or post-wrapper (or both) around an existing subroutine. Unlike other modules that provide this capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap implements wrappers in such a way that the standard 'caller' function works correctly within the wrapped subroutine. To install a prewrappers, you write: use Hook::LexWrap; wrap 'subroutine_name', pre => \&some_other_sub; The first argument to 'wrap' is a string containing the name of the subroutine to be wrapped (or the typeglob containing it, or a reference to it). The subroutine name may be qualified, and the subroutine must already be defined. The second argument indicates the type of wrapper being applied and must be either ''pre'' or ''post''. The third argument must be a reference to a subroutine that implements the wrapper. To install a post-wrapper, you write: wrap 'subroutine_name', post => \&yet_another_sub; To install both at once: wrap 'subroutine_name', pre => \&some_other_sub, post => \&yet_another_sub; or: wrap *subroutine_name, post => \&yet_another_sub, # order in which wrappers are pre => \&some_other_sub; # specified doesn't matter Once they are installed, the pre- and post-wrappers will be called before and after the subroutine itself, and will be passed the same argument list. The pre- and post-wrappers and the original subroutine also all see the same (correct!) values from 'caller' and 'wantarray'.
Artistic-1.0 or GPL-1.0+
* Fri Feb 24 2017 coolo@suse.com - updated to 0.26 see /usr/share/doc/packages/perl-Hook-LexWrap/Changes 0.26 2017-02-23 05:42:34Z - properly wrap CORE::caller for @DB::args (RT#103186, Максим Лубянов) * Tue Apr 14 2015 coolo@suse.com - updated to 0.25 see /usr/share/doc/packages/perl-Hook-LexWrap/Changes * Tue Nov 30 2010 coolo@novell.com - switch to perl_requires macro * Fri Nov 19 2010 chris@computersalat.de - update to 0.24 - Makefile.PL fixed - New test added - cpanspec o switch to Build - demo to doc - changelog to changes file * Tue Oct 19 2010 coolo@novell.com - add perl as explicit buildrequire * Wed Aug 04 2010 rschweikert@novell.com - Update source tarball to latest version - Fix line endings in README and Changes files to eliminate warnings * Sun Nov 29 2009 rschweikert@novell.com - Repackage source to tar.gz * Wed Oct 21 2009 rschweikert@novell.com - Add changes file - Add %dir directive for Hook directory - Cleanup %changelog * Tue Oct 13 2009 rschweikert@novell.com - Initial build.
/usr/lib/perl5/vendor_perl/5.26.1/Hook /usr/lib/perl5/vendor_perl/5.26.1/Hook/LexWrap.pm /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/share/doc/packages/perl-Hook-LexWrap /usr/share/doc/packages/perl-Hook-LexWrap/CONTRIBUTING /usr/share/doc/packages/perl-Hook-LexWrap/Changes /usr/share/doc/packages/perl-Hook-LexWrap/README /usr/share/licenses/perl-Hook-LexWrap /usr/share/licenses/perl-Hook-LexWrap/LICENSE /usr/share/man/man3/Hook::LexWrap.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Jul 9 19:58:50 2024