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-1.30 RPM for noarch

From OpenSuSE Ports Tumbleweed for noarch

Name: perl-Context-Preserve Distribution: openSUSE:Factory:zSystems
Version: 0.03 Vendor: openSUSE
Release: 1.30 Build date: Sat Nov 4 07:11:15 2017
Group: Development/Libraries/Perl Build host: reproducible
Size: 30317 Source RPM: perl-Context-Preserve-0.03-1.30.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.40.0/Context
/usr/lib/perl5/vendor_perl/5.40.0/Context/Preserve.pm
/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, Thu Nov 7 00:41:23 2024