diff options
author | sno <sno> | 2013-07-03 15:06:36 +0000 |
---|---|---|
committer | sno <sno> | 2013-07-03 15:06:36 +0000 |
commit | 8b56d4d4a1fb983e27be08931547266eaf52068c (patch) | |
tree | 2830534ff48ea33783c64ee738430415a2ff45c3 /filesystems/p5-Module-Path/DESCR | |
parent | d740e9bf4b3c6793242fe6e6827366f93c3b7378 (diff) | |
download | pkgsrc-8b56d4d4a1fb983e27be08931547266eaf52068c.tar.gz |
Adding package for CPAN distribution Module-Path version 0.09 into
filesystems/p5-Module-Path.
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.
Diffstat (limited to 'filesystems/p5-Module-Path/DESCR')
-rw-r--r-- | filesystems/p5-Module-Path/DESCR | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/filesystems/p5-Module-Path/DESCR b/filesystems/p5-Module-Path/DESCR new file mode 100644 index 00000000000..40971b4c707 --- /dev/null +++ b/filesystems/p5-Module-Path/DESCR @@ -0,0 +1,15 @@ +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. |