filesystems/p5-Module-Path 0.19nb11 NetBSD
Perl5 module to get the full path to a locally installed module
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- devel, perl5
- Package size
- 8.3 KiB, 16.0 KiB installed
Description
Module::Path provides a single function, module_path(), which will find where a module is installed locally.
It works by looking in all the directories in @INC for an appropriately named file:
\* Foo::Bar becomes Foo/Bar.pm, using the correct directory path
separator for your operating system.
\* Iterate over @INC, ignoring any references (see "require" in
"perlfunc" if you're surprised to hear that you might find references
in @INC).
\* For each directory in @INC, append the partial path (Foo/Bar.pm),
again using the correct directory path separator. If the resulting
file exists, return this path.
\* If no file was found, return undef.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | filesystems/p5-Module-Path | 0.19nb11 |
| FreeBSD | devel/p5-Module-Path | 0.19 |
| OpenBSD | devel/p5-Module-Path | 0.19 |
| DragonFly | devel/p5-Module-Path | 0.19 |
Install
Binary package:
pkgin install p5-Module-Path
From pkgsrc:
cd /usr/pkgsrc/filesystems/p5-Module-Path && make install clean