perl-Context-Preserve-0.01-10pclos2011.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 PCLinuxOS
Repository PCLinuxOS x86_64
Package filename perl-Context-Preserve-0.01-10pclos2011.noarch.rpm
Package name perl-Context-Preserve
Package version 0.01
Package release 10pclos2011
Package architecture noarch
Package type rpm
Homepage -
License -
Maintainer -
Download size 4.24 KB
Installed size 4.24 KB
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(Carp) -
perl-base >= 5.12.3
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1
rpmlib(VersionedDependencies) <= 3.0.3-1

Provides

Name Value
perl(Context::Preserve) = 0.10.0
perl-Context-Preserve = 0.01-10pclos2011

Download

Type URL
Mirror ftp.nluug.nl
Binary Package perl-Context-Preserve-0.01-10pclos2011.noarch.rpm
Source Package perl-Context-Preserve-0.01-10pclos2011.src.rpm

Install Howto

  1. Enable PCLinuxOS x86_64 repository in /etc/apt/sources.list:
    rpm http://ftp.nluug.nl/pub/os/Linux/distr/pclinuxos/pclinuxos/apt/ pclinuxos/64bit x86_64
  2. Update the package index:
    # apt-get update
  3. Install perl-Context-Preserve rpm package:
    # apt-get install perl-Context-Preserve

See Also

Package Description
perl-ControlX10-CM11-2.09-10pclos2011.noarch.rpm ControlX10-CM11 module for perl
perl-Convert-ASCII-Armour-1.4-10pclos2011.noarch.rpm Convert binary octets into ASCII armoured messages
perl-Convert-ASN1-0.22-10pclos2011.noarch.rpm ASN.1 Encode/Decode library for perl
perl-Convert-BER-1.3101-10pclos2011.noarch.rpm Convert-BER (module for perl)
perl-Convert-BinHex-1.119-10pclos2011.noarch.rpm Extract data from Macintosh BinHex files
perl-Convert-Binary-C-0.74-10pclos2011.x86_64.rpm Convert-Binary-C module for perl
perl-Convert-Color-0.05-10pclos2011.noarch.rpm A color value represented as red/green/blue in
perl-Convert-EBCDIC-0.06-10pclos2011.noarch.rpm Convert-EBCDIC module for perl
perl-Convert-PEM-0.07-10pclos2011.noarch.rpm Read/write encrypted ASN.1 PEM files
perl-Convert-Scalar-1.04-10pclos2011.x86_64.rpm Convert-Scalar module for perl
perl-Convert-TNEF-0.17-10pclos2011.noarch.rpm Convert-TNEF module for perl
perl-Convert-UUlib-1.3-10pclos2011.x86_64.rpm Convert-UUlib module for perl
perl-Convert-Units-0.43-10pclos2011.noarch.rpm Convert-Units module for perl
perl-Crypt-Blowfish-2.10-10pclos2011.x86_64.rpm Perl Blowfish encryption module
perl-Crypt-Blowfish_PP-1.12-10pclos2011.noarch.rpm Crypt::Blowfish_PP - Blowfish encryption algorithm implemented purely in Perl
Advertisement
Advertisement