Upstream software project

perl-Context-Preserve

Run code after a subroutine call, preserving the context the subroutine [cut]

About perl-Context-Preserve

Run code after a subroutine call, preserving the context the subroutine [cut]

This project links 2 native package records across 2 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

openSUSE Leap 15.6: 1 package records; openSUSE Leap 16.0: 1 package records. Catalog coverage diagram, not an application screenshot.perl-Context-Preserve: recorded package coverageopenSUSE Leap 15.61 recordsopenSUSE Leap 16.01 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
perl-Context-Preserve
Publisher
Not authoritatively mapped
Native package records
2
Operating systems
opensuse-leap-15-6, opensuse-leap-16-0
License expression
Artistic-1.0 or GPL-1.0+
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

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.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

openSUSE Leap 15.6

  1. Package perl-Context-Preserve

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/Perl): Run code after a subroutine call, preserving the context the subroutine [cut]

    0.03-bp156.3.1: noarch

    Source: perl-Context-Preserve

openSUSE Leap 16.0

  1. Package perl-Context-Preserve

    leap-16.0 (openSUSE Leap 16.0) (Development/Libraries/Perl): Run code after a subroutine call, preserving the context the subroutine [cut]

    0.03-bp160.1.11: noarch

    Source: perl-Context-Preserve

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.