Acme::CPANModules::ModuleAutoinstallers - Modules that autoinstalls other modules during run-time
This document describes version 0.001 of Acme::CPANModules::ModuleAutoinstallers (from Perl distribution Acme-CPANModules-ModuleAutoinstallers), released on 2020-02-06.
Modules that autoinstalls other modules during run-time.
These "module autoinstallers" modules can automatically install missing module during run-time using one of installers (usually cpanm a.k.a. App::cpanminus). Convenient when running a Perl script (that comes without a proper distribution or cpanfile) that uses several modules which you might not have. The alternative to lib::xi is the "trial and error" method: repeatedly run the Perl script to see which module it tries and fails to load.
cpanm
cpanfile
They work by installing a hook in @INC. Read more about require hooks in perlfunc under the require function.
@INC
perlfunc
require
lib::xi
Module::AutoINC
Require::Hook::More
Aside from reading it, you can install all the listed modules using cpanmodules:
% cpanmodules ls-entries ModuleAutoinstallers | cpanm -n
or Acme::CM::Get:
% perl -MAcme::CM::Get=ModuleAutoinstallers -E'say $_->{module} for @{ $LIST->{entries} }' | cpanm -n
This module also helps lcpan produce a more meaningful result for lcpan related-mods when it comes to finding related modules for the modules listed in this Acme::CPANModules module.
lcpan related-mods
Please visit the project's homepage at https://metacpan.org/release/Acme-CPANModules-ModuleAutoinstallers.
Source repository is at https://github.com/perlancar/perl-Acme-CPANModules-ModuleAutoinstallers.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANModules-ModuleAutoinstallers
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.
Acme::CPANModules::ModuleAutoloaders
Acme::CPANModules - about the Acme::CPANModules namespace
cpanmodules - CLI tool to let you browse/view the lists
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020 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 Acme::CPANModules::ModuleAutoinstallers, copy and paste the appropriate command in to your terminal.
cpanm Acme::CPANModules::ModuleAutoinstallers
CPAN shell
perl -MCPAN -e shell install Acme::CPANModules::ModuleAutoinstallers
For more information on module installation, please visit the detailed CPAN module installation guide.