Module::List::Tiny - A fork of Module::List that starts faster
This document describes version 0.004003 of Module::List::Tiny (from Perl distribution Module-List-Tiny), released on 2020-09-21.
use Module::List::Tiny qw(list_modules); $id_modules = list_modules("Data::ID::", { list_modules => 1}); $prefixes = list_modules("", { list_prefixes => 1, recurse => 1 });
This module is a fork of Module::List. It's exactly like Module::List 0.004, except with lower startup overhead (see benchmarks in Bencher::Scenario::ListingModules::Startup). To accomplish this, it:
does its own exporting instead of using Exporter
avoids using Carp and uses the good old die
die
avoids using IO::Dir and uses plain opendir
opendir
The problem is that IO::Dir brings in a bunch of other modules.
avoids using File::Spec and hard-code path separator as /
/
/ happens to work everywhere with current platforms anyway.
Please see Module::List for more documentation.
Please visit the project's homepage at https://metacpan.org/release/Module-List-Tiny.
Source repository is at https://github.com/perlancar/perl-Module-List-Tiny.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Module-List-Tiny
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Module::List, Module::List::Wildcard, Module::List::More
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020, 2019 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Module::List::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Module::List::Tiny
CPAN shell
perl -MCPAN -e shell install Module::List::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.