perl-Context-Preserve-0.03-4.fc29.noarch.rpm


Advertisement

Description

perl-Context-Preserve - Run code after a subroutine call, preserving context

Property Value
Distribution Fedora 29
Repository Fedora i386
Package name perl-Context-Preserve
Package version 0.03
Package release 4.fc29
Package architecture noarch
Package type rpm
Installed size 29.86 KB
Download size 22.27 KB
Official Mirror download-ib01.fedoraproject.org
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.

Alternatives

Package Version Architecture Repository
perl-Context-Preserve-0.03-4.fc29.noarch.rpm 0.03 noarch Fedora
perl-Context-Preserve - - -

Requires

Name Value
perl(:MODULE_COMPAT_5.28.0) -
perl(Carp) -
perl(Exporter) -
perl(base) -
perl(strict) -
perl(warnings) -

Provides

Name Value
perl(Context::Preserve) = 0.03
perl-Context-Preserve = 0.03-4.fc29

Download

Type URL
Binary Package perl-Context-Preserve-0.03-4.fc29.noarch.rpm
Source Package perl-Context-Preserve-0.03-4.fc29.src.rpm

Install Howto

Install perl-Context-Preserve rpm package:

# dnf install perl-Context-Preserve

Files

Path
/usr/share/doc/perl-Context-Preserve/CONTRIBUTING
/usr/share/doc/perl-Context-Preserve/Changes
/usr/share/doc/perl-Context-Preserve/README
/usr/share/licenses/perl-Context-Preserve/LICENCE
/usr/share/man/man3/Context::Preserve.3pm.gz
/usr/share/perl5/vendor_perl/Context/Preserve.pm

Changelog

2018-07-13 - Fedora Release Engineering <releng@fedoraproject.org> - 0.03-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-28 - Jitka Plesnikova <jplesnik@redhat.com> - 0.03-3
- Perl 5.28 rebuild
2018-02-08 - Fedora Release Engineering <releng@fedoraproject.org> - 0.03-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-11-06 - Jitka Plesnikova <jplesnik@redhat.com> - 0.03-1
- 0.03 bump
2017-07-27 - Fedora Release Engineering <releng@fedoraproject.org> - 0.02-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-04 - Jitka Plesnikova <jplesnik@redhat.com> - 0.02-2
- Perl 5.26 rebuild
2017-05-12 - Jitka Plesnikova <jplesnik@redhat.com> - 0.02-1
- 0.02 bump
2017-02-11 - Fedora Release Engineering <releng@fedoraproject.org> - 0.01-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

See Also

Package Description
perl-Contextual-Return-0.004014-6.fc29.noarch.rpm Create context-sensitive return values
perl-Convert-ASCII-Armour-1.4-34.fc29.noarch.rpm Convert binary octets into ASCII armoured messages
perl-Convert-ASN1-0.27-12.fc29.noarch.rpm ASN.1 Encode/Decode library
perl-Convert-Age-0.04-15.fc29.noarch.rpm Perl module that converts integer seconds into a "compact" form and back
perl-Convert-BER-1.32-14.fc29.noarch.rpm ASN.1 Basic Encoding Rules
perl-Convert-Base64-0.001-7.fc29.noarch.rpm Encoding and decoding of Base64 strings
perl-Convert-Bencode-1.03-22.fc29.noarch.rpm Functions for converting to/from bencoded strings
perl-Convert-Bencode_XS-0.06-24.fc29.i686.rpm Faster conversions to/from Bencode format
perl-Convert-BinHex-1.125-9.fc29.noarch.rpm Convert to/from RFC1741 HQX7 (Mac BinHex)
perl-Convert-Binary-C-0.78-10.fc29.i686.rpm Binary data conversion using C types
perl-Convert-Color-0.11-14.fc29.noarch.rpm Color space conversions and named lookups
perl-Convert-NLS_DATE_FORMAT-0.06-18.fc29.noarch.rpm Convert Oracle NLS_DATE_FORMAT <-> strftime Format Strings
perl-Convert-PEM-0.08-27.fc29.noarch.rpm Read/write encrypted ASN.1 PEM files
perl-Convert-TNEF-0.18-13.fc29.noarch.rpm Perl module to read TNEF files
perl-Convert-UU-0.5201-21.fc29.noarch.rpm Perl module for uuencode and uudecode
Advertisement
Advertisement