Name : perl-PERLANCAR-Module-List
| |
Version : 0.4.5
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.5
| Date : 2024-03-12 18:02:39
|
Group : Unspecified
| Source RPM : perl-PERLANCAR-Module-List-0.4.5-1.5.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : Fork of Module::List
|
Description :
This module is my personal experimental fork of Module::List; the experiment has also produced other forks like Module::List::Tiny, Module::List::Wildcard. It\'s like Module::List, except for the following differences:
* * lower startup overhead (with some caveats)
It avoids using Exporter and implements its own import(). It avoids IO::Dir, Carp, File::Spec, with the goal of saving a few milliseconds (a casual test on my PC results in 11ms vs 39ms).
Path separator is hard-coded as \'/\'.
* * Recognize \'all\' option
If set to true and \'return_path\' is also set to true, will return all found paths for each module instead of just the first found one. The values of result will be an arrayref containing all found paths.
* * Recognize \'wildcard\' option
This boolean option can be set to true to recognize wildcard pattern in prefix. Wildcard patterns such as jokers (\'?\', \'*\', \'**\'), classes (\'[a-z]\'), as well as braces (\'{One,Two}\') are supported. \'**\' implies recursive listing.
Examples:
list_modules(\"Module::P*\", {wildcard=>1, list_modules=>1});
results in something like:
{ \"Module::Patch\" => undef, \"Module::Path\" => undef, \"Module::Pluggable\" => undef, }
while:
list_modules(\"Module::P**\", {wildcard=>1, list_modules=>1});
results in something like:
{ \"Module::Patch\" => undef, \"Module::Path\" => undef, \"Module::Path::More\" => undef, \"Module::Pluggable\" => undef, \"Module::Pluggable::Object\" => undef, }
while:
list_modules(\"Module::**le\", {wildcard=>1, list_modules=>1});
results in something like:
{ \"Module::Depakable\" => undef, \"Module::Install::Admin::Bundle\" => undef, \"Module::Install::Admin::Makefile\" => undef, \"Module::Install::Bundle\" => undef, \"Module::Install::Makefile\" => undef, \"Module::Pluggable\" => undef, }
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/noarch |