Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Context-Preserve-0.03-lp152.3.2 RPM for noarch

From OpenSuSE Leap 15.2 for noarch

Name: perl-Context-Preserve Distribution: openSUSE Leap 15.2
Version: 0.03 Vendor: openSUSE
Release: lp152.3.2 Build date: Fri Sep 20 19:46:32 2019
Group: Development/Libraries/Perl Build host: build74
Size: 30552 Source RPM: perl-Context-Preserve-0.03-lp152.3.2.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/Context-Preserve/
Summary: Run code after a subroutine call, preserving the context the subroutine [cut]
Sometimes you need to call a function, get the results, act on the results,
then return the result of the function. This is painful because of
contexts; the original function can behave different if it's called in
void, scalar, or list context. You can ignore the various cases and just
pick one, but that's fragile. To do things right, you need to see which
case you're being called in, and then call the function in that context.
This results in 3 code paths, which is a pain to type in (and maintain).

This module automates the process. You provide a coderef that is the
"original function", and another coderef to run after the original runs.
You can modify the return value (aliased to @_) here, and do whatever else
you need to do. 'wantarray' is correct inside both coderefs; in "after",
though, the return value is ignored and the value 'wantarray' returns is
related to the context that the original function was called in.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Sat Nov 04 2017 coolo@suse.com
  - updated to 0.03
    see /usr/share/doc/packages/perl-Context-Preserve/Changes
    0.03      2017-11-03 19:55:47Z
    - fix copyright in metadata and pod (thanks dam)
* Fri May 12 2017 coolo@suse.com
  - updated to 0.02
    see /usr/share/doc/packages/perl-Context-Preserve/Changes
* Sat Jan 22 2011 coolo@novell.com
  - initial package 0.01
    * created by cpanspec 1.78.03

Files

/usr/lib/perl5/vendor_perl/5.26.1/Context
/usr/lib/perl5/vendor_perl/5.26.1/Context/Preserve.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Context-Preserve
/usr/share/doc/packages/perl-Context-Preserve/CONTRIBUTING
/usr/share/doc/packages/perl-Context-Preserve/Changes
/usr/share/doc/packages/perl-Context-Preserve/LICENCE
/usr/share/doc/packages/perl-Context-Preserve/README
/usr/share/man/man3/Context::Preserve.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Sun Jan 9 13:26:04 2022