The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Perinci::Sub::Util::DepModule - Given a Rinci function metadata, find what dep modules are required

VERSION

This document describes version 0.001 of Perinci::Sub::Util::DepModule (from Perl distribution Perinci-Sub-Util-DepModule), released on 2016-09-29.

SYNOPSIS

 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,
 }

FUNCTIONS

get_required_dep_modules($meta) => array

Dpendencies are checked by Perinci::Sub::DepChecker as well as other Perinci::Sub::Dep::* modules for custom types of dependencies.

This function can detect which modules are used.

This function can be used during distribution building to automatically add those modules as prerequisites.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Perinci-Sub-Util-DepModule.

SOURCE

Source repository is at https://github.com/perlancar/perl-Perinci-Sub-Util-DepModule.

BUGS

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.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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.