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.19 RPM for noarch

From OpenSuSE Ports Tumbleweed for noarch

Name: perl-Context-Preserve Distribution: openSUSE:Factory:zSystems
Version: 0.03 Vendor: obs://
Release: 1.19 Build date: Mon Oct 18 00:14:39 2021
Group: Development/Libraries/Perl Build host: s390zl25
Size: 30580 Source RPM: perl-Context-Preserve-0.03-1.19.src.rpm
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.




Artistic-1.0 or GPL-1.0+


* Sat Nov 04 2017
  - 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
  - updated to 0.02
    see /usr/share/doc/packages/perl-Context-Preserve/Changes
* Sat Jan 22 2011
  - initial package 0.01
    * created by cpanspec 1.78.03



Generated by rpm2html 1.8.1

Fabrice Bellet, Sun Jan 9 14:21:14 2022