Name : perl-Module-Path
| |
Version : 0.19
| Vendor : openSUSE
|
Release : bp154.1.1
| Date : 2021-07-15 19:23:03
|
Group : Development/Libraries/Perl
| Source RPM : perl-Module-Path-0.19-bp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : get the full path to a locally installed module
|
Description :
This module provides a single function, \'module_path()\', which takes a module name and finds the first directory in your \'AATTINC\' path where the module is installed locally. It returns the full path to that file, resolving any symlinks. It is portable and only depends on core modules.
It works by looking in all the directories in \'AATTINC\' for an appropriately named file:
I wrote this module because I couldn\'t find an alternative which dealt with the points listed above, and didn\'t pull in what seemed like too many dependencies to me.
The distribution for \'Module::Path\' includes the \'mpath\' script, which lets you get the path for a module from the command-line:
% mpath Module::Path
The \'module_path()\' function will also cope if the module name includes \'.pm\'; this means you can pass a partial path, such as used as the keys in \'%INC\':
module_path(\'Test/More.pm\') eq $INC{\'Test/More.pm\'}
The above is the basis for one of the tests.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15-SP4/step/noarch |