SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Hook-LexWrap rpm build for : OpenSuSE. For other distributions click perl-Hook-LexWrap.

Name : perl-Hook-LexWrap
Version : 0.26 Vendor : obs://build_opensuse_org/devel:openQA
Release : 2.1 Date : 2018-12-06 14:18:34
Group : Development/Libraries/Perl Source RPM : perl-Hook-LexWrap-0.26-2.1.src.rpm
Size : 0.04 MB
Packager : (none)
Summary : Lexically scoped subroutine wrappers
Description :
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\'.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/openQA:/SLE-15/SLE_15/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-Hook-LexWrap-0.26-2.1.noarch.rpm
     

Provides :
perl(Hook::LexWrap)
perl-Hook-LexWrap

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/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/aarch64-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

 
ICM