perl-lib-relative - Add paths relative to the current file to

Property Value
Distribution Mageia Cauldron
Repository Mageia Core x86_64
Package name perl-lib-relative
Package version 0.2.0
Package release 1.mga7
Package architecture noarch
Package type rpm
Installed size 46.85 KB
Download size 20.62 KB
Official Mirror
Adding a path to perlvar/"@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 the FindBin manpage 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 perldata/"Special Literals", absolutize
it, and add it to '@INC'.
If this module is already available to be loaded, it can be used as with
the lib, passing relative paths, which will be absolutized
relative to the current file then passed on to the lib manpage. 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 the /"SYNOPSIS" manpage can be copy-pasted into a file to perform
the same task.


Package Version Architecture Repository
perl-lib-relative-0.2.0-1.mga7.noarch.rpm 0.2.0 noarch Mageia Core
perl-lib-relative - - -


Name Value
perl(File::Basename) -
perl(File::Spec) -
perl(lib) -
perl(strict) -
perl(warnings) -
perl-base >= 2:5.26.1


Name Value
perl(lib::relative) == 0.2.0
perl-lib-relative == 0.2.0-1.mga7


Type URL
Binary Package perl-lib-relative-0.2.0-1.mga7.noarch.rpm
Source Package perl-lib-relative-0.2.0-1.mga7.src.rpm

Install Howto

  1. Enable Mageia Core repository on "Install and Remove Software"
  2. Update packages list:
    # urpmi.update -a
  3. Install perl-lib-relative rpm package:
    # urpmi perl-lib-relative




2017-10-24 - shlomif <shlomif> 0.2.0-1.mga7
+ Revision: 1173334
- imported package perl-lib-relative
2017-10-24 - cpan2dist 0.002-1mga
- initial mageia release, generated with cpan2dist

See Also

Package Description
perl-libapreq2-2.130.0-24.mga7.x86_64.rpm Apache Request Library Perl Glue
perl-libintl-perl-1.290.0-2.mga7.x86_64.rpm A localization library for Perl
perl-libnet-3.11-1.mga7.noarch.rpm Perl clients for various network protocols
perl-libwww-perl-6.340.0-1.mga7.noarch.rpm The World-Wide Web library for Perl
perl-libxml-perl-0.80.0-8.mga6.noarch.rpm Various perl modules and script for working with XML
perl-local-lib-2.0.24-1.mga7.noarch.rpm create and use a local lib/ for perl modules with PERL5LIB
perl-lvalue-0.10.0-10.mga7.noarch.rpm use lvalue subroutines with ease
perl-macro-0.60.0-10.mga7.noarch.rpm compiler backend
perl-mixin-0.80.0-2.mga6.noarch.rpm Mix-in inheritance, an alternative to multiple inheritance
perl-multidimensional-0.14.0-1.mga7.x86_64.rpm Disables multidmensional array emulation
perl-namespace-autoclean-0.280.0-3.mga6.noarch.rpm Keep imports out of your namespace
perl-namespace-clean-0.270.0-1.mga7.noarch.rpm Keep imports and functions out of your namespace
perl-namespace-sweep-0.6.0-8.mga6.noarch.rpm Sweep up imported subs in your classes
perl-obexftp-0.24-15.mga7.x86_64.rpm Perl library to access devices via the OBEX protocol
perl-ogd-0.30.0-7.mga6.noarch.rpm Ordered global destruction of objects stored in globals