Package: perl-Module-Path (0.19-1.39)
get the full path to a locally installed module
This module provides a single function, 'module_path()', which takes a module name and finds the first directory in your '@INC' 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 '@INC' 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.
Package information
- Homepage
- [http://search.cpan.org/dist/Module-Path/]
- License
- Artistic-1.0 or GPL-1.0+
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-Module-Path]
- Software project
- [perl-Module-Path]
Versions and downloads for perl-Module-Path
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.19-1.39tumbleweed / oss | noarchopenSUSE Tumbleweed · OSS · multi-architecture | 24 KiB | 34 KiB | list of files | perl-Module-Path-0.19-1.39.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-Module-Path
dep: /usr/bin/env
Package not available
dep: perl(:MODULE_COMPAT_5.44.0)
Package not available
Package file paths (10)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/bin/mpath
- /usr/lib/perl5/vendor_perl/5.44.0/Module
- /usr/lib/perl5/vendor_perl/5.44.0/Module/Path.pm
- /usr/share/doc/packages/perl-Module-Path
- /usr/share/doc/packages/perl-Module-Path/Changes
- /usr/share/doc/packages/perl-Module-Path/LICENSE
- /usr/share/doc/packages/perl-Module-Path/README
- /usr/share/doc/packages/perl-Module-Path/TODO.md
- /usr/share/man/man1/mpath.1.gz
- /usr/share/man/man3/Module::Path.3pm.gz
Field source: openSUSE Tumbleweed OSS
