Perinci::Sub::Util::DepModule - Given a Rinci function metadata, find what dep modules are required
This document describes version 0.001 of Perinci::Sub::Util::DepModule (from Perl distribution Perinci-Sub-Util-DepModule), released on 2016-09-29.
use Perinci::Sub::Util::DepModule qw(get_required_dep_modules); my $meta = { v => 1.1, deps => { prog => 'git', any => [ {pm => 'Foo::Bar'}, {pm => 'Foo::Baz'}, ], }, ... }; my $mods = get_required_dep_modules($meta);
Result:
{ 'Perinci::Sub::DepChecker' => 0, 'Perinci::Sub::Dep::pm' => 0, }
Dpendencies are checked by Perinci::Sub::DepChecker as well as other Perinci::Sub::Dep::* modules for custom types of dependencies.
Perinci::Sub::Dep::*
This function can detect which modules are used.
This function can be used during distribution building to automatically add those modules as prerequisites.
Please visit the project's homepage at https://metacpan.org/release/Perinci-Sub-Util-DepModule.
Source repository is at https://github.com/perlancar/perl-Perinci-Sub-Util-DepModule.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Sub-Util-DepModule
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2016 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 Perinci::Sub::Util::DepModule, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::Sub::Util::DepModule
CPAN shell
perl -MCPAN -e shell install Perinci::Sub::Util::DepModule
For more information on module installation, please visit the detailed CPAN module installation guide.