Upstream software project

liblib-relative-perl

Add paths relative to the current file to @INC

About liblib-relative-perl

Add paths relative to the current file to @INC

This project links 9 native package records across 7 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: 2 package records; Fedora 44: 2 package records; openSUSE Leap 15.6: 1 package records; openSUSE Leap 16.0: 1 package records; openSUSE Tumbleweed: 1 package records. Catalog coverage diagram, not an application screenshot.liblib-relative-perl: recorded package coverageDebian 12 (Bookworm)1 recordsDebian 13 (Trixie)1 recordsFedora 432 recordsFedora 442 recordsopenSUSE Leap 15.61 recordsopenSUSE Leap 16.01 recordsopenSUSE Tumbleweed1 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
liblib-relative-perl
Publisher
Not authoritatively mapped
Native package records
9
Operating systems
debian-12, debian-13, fedora-43, fedora-44, opensuse-leap-15-6, opensuse-leap-16-0, opensuse-tumbleweed
License expression
Artistic-2.0
Source repository
Not reported

Source-reported description

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

Adding a path to @INC to load modules from a local directory may seem simple, but has a few common pitfalls to be aware of. Directly adding a relative path to '@INC' means that any later code that changes the current working directory will change where modules are loaded from. This applies to the '.' path that used to be in '@INC' by default until perl 5.26.0, or a relative path added in code like 'use lib 'path/to/lib'', and may be a vulnerability if such a location is not supposed to be writable. Additionally, the commonly used FindBin module relies on interpreter state and the path to the original script invoked by the perl interpreter, sometimes requiring workarounds in uncommon cases like generated or embedded code. This module proposes a more straightforward method: take a path relative to the current file, absolutize it, and add it to '@INC'. If this module is already available to be loaded, it can be used as with lib.pm, passing relative paths, which will be absolutized relative to the current file then passed on to lib. Multiple arguments will be separately absolutized, and absolute paths will be passed on unchanged. For cases where this module cannot be loaded beforehand, the last section of the "SYNOPSIS" can be copy-pasted into a file to perform the same task.

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 liblib-relative-perl

    bookworm (Debian 12 (Bookworm)) (perl): module to add paths relative to the current file to @INC

    1.001-2: all

Debian 13 (Trixie)

  1. Package liblib-relative-perl

    trixie (Debian 13 (Trixie)) (perl): module to add paths relative to the current file to @INC

    1.002-1: all

Fedora 43

  1. Package perl-lib-relative

    43 (Fedora 43) (Unspecified): Add paths relative to the current file to @INC

    1.002-6.fc43: noarch

    Source: perl-lib-relative

  2. Source: perl-lib-relative

Fedora 44

  1. Package perl-lib-relative

    44 (Fedora 44) (Unspecified): Add paths relative to the current file to @INC

    1.002-7.fc44: noarch

    Source: perl-lib-relative

  2. Source: perl-lib-relative

openSUSE Leap 15.6

  1. Package perl-lib-relative

    leap-15.6 (openSUSE Leap 15.6) (Unspecified): Add paths relative to the current file to @INC

    1.2.0-bp156.1.1: noarch

    Source: perl-lib-relative

openSUSE Leap 16.0

  1. Package perl-lib-relative

    leap-16.0 (openSUSE Leap 16.0) (Unspecified): Add paths relative to the current file to @INC

    1.2.0-bp160.1.11: noarch

    Source: perl-lib-relative

openSUSE Tumbleweed

  1. Package perl-lib-relative

    tumbleweed (openSUSE Tumbleweed) (Unspecified): Add paths relative to the current file to @INC

    1.2.0-2.8: noarch

    Source: perl-lib-relative

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.