Perl::PrereqDistributionGatherer - gather all prerequisite distributions
use Perl::PrereqDistributionGatherer;
my $gatherer = Perl::PrereqDistributionGatherer->new;
my ($dists, $core, $miss) = $gatherer->gather(["Plack", "Moose"]);
# or, from cpanfile
my ($dists, $core, $miss) = $gatherer->gather_from_cpanfile("cpanfile");
Perl::PrereqDistributionGatherer gathers all prerequisite distributions for some modules.
-
my $gatherer = Perl::PrereqDistributionGatherer->new(%option)
Constructor.
%option
may be:-
inc
The search path of modules. Default:
\@INC
. -
fill_archlib
If this is true, then prepend archlib to inc directories.
-
-
my ($dists, $core, $miss) = $gatherer->gather($modules)
Gatherer distributions which are prerequisite for
$modules
. The return values are:-
$dists
Array reference of prerequisite distributions, which are instances of Distribution::Metadata.
-
$core
Array reference of prerequisite core modules.
-
$miss
Array reference of missed modules.
-
-
my ($dists, $core, $miss) = $gatherer->gather_from_cpanfile($cpanfile_path)
This is convenient method, which gathers prerequisite distributions by modules stated in
cpanfile
. The return values is the same as thegather
method.
https://github.com/miyagawa/Carmel
Copyright (C) 2016 Shoichi Kaji <skaji@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Shoichi Kaji <skaji@cpan.org>