perl-Context-Preserve-0.01-2.1.noarch.rpm


Advertisement

Description

perl-Context-Preserve - run code after a subroutine call, preserving the context the subroutine would have seen if it were the last statement in the caller

Property Value
Distribution openSUSE Leap 42.2
Repository openSUSE Oss all
Package name perl-Context-Preserve
Package version 0.01
Package release 2.1
Package architecture noarch
Package type rpm
Installed size 7.31 KB
Download size 9.62 KB
Official Mirror ftp.gwdg.de
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 - - -

Requires

Name Value
perl(:MODULE_COMPAT_5.18.2) -
perl(Exporter) -
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1

Provides

Name Value
perl(Context::Preserve) = 0.01
perl-Context-Preserve = 0.01-2.1

Download

Type URL
Binary Package perl-Context-Preserve-0.01-2.1.noarch.rpm
Source Package perl-Context-Preserve-0.01-2.1.src.rpm

Install Howto

Install perl-Context-Preserve rpm package:

# zypper install perl-Context-Preserve

See Also

Package Description
perl-Contextual-Return-0.004007-8.1.noarch.rpm Create context-sensitive return values
perl-Convert-ASN1-0.27-4.1.noarch.rpm Asn.1 Encode/Decode Library
perl-Convert-BER-1.32-30.1.x86_64.rpm ASN.1 Basic Encoding Rules
perl-Convert-BinHex-1.125-1.1.noarch.rpm Extract Data From Macintosh Binhex Files
perl-Convert-TNEF-0.18-6.1.noarch.rpm Perl module to read TNEF files
perl-Convert-UUlib-1.4-18.2.x86_64.rpm Perl interface to the uulib library
perl-Cookie-Baker-0.06-1.1.noarch.rpm Cookie string generator / parser
perl-Crypt-Blowfish-2.14-8.2.x86_64.rpm Perl Blowfish encryption module
perl-Crypt-CBC-2.33-8.1.noarch.rpm Encrypt Data with Cipher Block Chaining Mode
perl-Crypt-DES-2.07-8.2.x86_64.rpm Perl DES encryption module
perl-Crypt-DH-GMP-0.00012-4.13.x86_64.rpm Crypt::DH Using GMP Directly
perl-Crypt-Eksblowfish-0.009-1.1.x86_64.rpm The Eksblowfish Block Cipher
perl-Crypt-MySQL-0.04-1.1.x86_64.rpm Emulate the MySQL PASSWORD() function
perl-Crypt-OpenSSL-Bignum-0.06-4.2.x86_64.rpm OpenSSL's multiprecision integer arithmetic
perl-Crypt-OpenSSL-RSA-0.28-11.2.x86_64.rpm RSA encoding and decoding, using the openSSL libraries
Advertisement
Advertisement