Module::Depends - identify the dependencies of a distribution


Module-Depends documentation  | view source Contained in the Module-Depends distribution.

Index


NAME

Top

Module::Depends - identify the dependencies of a distribution

SYNOPSIS

Top

 use YAML;
 use Module::Depends;
 my $deps = Module::Depends->new->dist_dir( '.' )->find_modules;
 print "Our dependencies:\n", Dump $deps->requires;

DESCRIPTION

Top

Module::Depends extracts module dependencies from an unpacked distribution tree.

Module::Depends only evaluates the META.yml shipped with a distribution. This won't be effective until all distributions ship META.yml files, so we suggest you take your life in your hands and look at Module::Depends::Intrusive.

METHODS

Top

new

simple constructor

dist_dir

Path where the distribution has been extracted to.

find_modules

scan the dist_dir to populate libs, requires, and build_requires

libs

an array reference of lib lines

requires

A reference to a hash enumerating the prerequisite modules for this distribution.

build_requires

A reference to a hash enumerating the modules needed to build the distribution.

error

A reason, if any, for failing to get dependencies.

AUTHOR

Top

Richard Clamp, based on code extracted from the Fotango build system originally by James Duncan and Arthur Bergman.

COPYRIGHT

Top

SEE ALSO

Top

Module::Depends::Intrusive


Module-Depends documentation  | view source Contained in the Module-Depends distribution.