Upstream software project

libcontext-preserve-perl

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

About libcontext-preserve-perl

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

This project links 5 native package records across 5 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

Debian 12 (Bookworm): 1 package records; Debian 13 (Trixie): 1 package records; Fedora 43: 1 package records; Fedora 44: 1 package records; openSUSE Tumbleweed: 1 package records. Catalog coverage diagram, not an application screenshot.libcontext-preserve-perl: recorded package coverageDebian 12 (Bookworm)1 recordsDebian 13 (Trixie)1 recordsFedora 431 recordsFedora 441 recordsopenSUSE Tumbleweed1 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
libcontext-preserve-perl
Publisher
Not authoritatively mapped
Native package records
5
Operating systems
debian-12, debian-13, fedora-43, fedora-44, opensuse-tumbleweed
License expression
Artistic-1.0 OR GPL-1.0-or-later
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 code reference that is the "original function", and another code reference to run after running the original. You can modify the return value (aliased to @_) here, and do whatever else you need to do. 'wantarray' is correct inside both code references; 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.

Debian 12 (Bookworm)

  1. Package libcontext-preserve-perl

    bookworm (Debian 12 (Bookworm)) (perl): Perl module to preserve calling context

    0.03-3: all

Debian 13 (Trixie)

Fedora 43

  1. Package perl-Context-Preserve

    43 (Fedora 43) (Unspecified): Run code after a subroutine call, preserving the context

    0.03-24.fc43: noarch

    Source: perl-Context-Preserve

Fedora 44

  1. Package perl-Context-Preserve

    44 (Fedora 44) (Unspecified): Run code after a subroutine call, preserving the context

    0.03-25.fc44: noarch

    Source: perl-Context-Preserve

openSUSE Tumbleweed

  1. Package perl-Context-Preserve

    tumbleweed (openSUSE Tumbleweed) (Unspecified): Run code after a subroutine call, preserving the context the subroutine [cut]

    0.30.0-1.4: 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.