1Module::Depends(3)    User Contributed Perl Documentation   Module::Depends(3)
2
3
4

NAME

6       Module::Depends - identify the dependencies of a distribution
7

SYNOPSIS

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

DESCRIPTION

15       Module::Depends extracts module dependencies from an unpacked
16       distribution tree.
17
18       Module::Depends only evaluates the META.yml shipped with a
19       distribution.  This won't be effective until all distributions ship
20       META.yml files, so we suggest you take your life in your hands and look
21       at Module::Depends::Intrusive.
22

METHODS

24   new
25       simple constructor
26
27   dist_dir
28       Path where the distribution has been extracted to.
29
30   find_modules
31       scan the "dist_dir" to populate "libs", "requires", and
32       "build_requires"
33
34   libs
35       an array reference of lib lines
36
37   requires
38       A reference to a hash enumerating the prerequisite modules for this
39       distribution.
40
41   configure_requires
42       A reference to a hash enumerating the prerequisite modules to configure
43       this distribution.
44
45   build_requires
46       A reference to a hash enumerating the modules needed to build the
47       distribution.
48
49   error
50       A reason, if any, for failing to get dependencies.
51

AUTHOR

53       Richard Clamp, based on code extracted from the Fotango build system
54       originally by James Duncan and Arthur Bergman.
55
57       Copyright 2010, Richard Clamp.  Copyright 2004-2008, Fotango.
58
59       This module is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61

SEE ALSO

63       Module::Depends::Intrusive
64
65
66
67perl v5.32.0                      2020-07-28                Module::Depends(3)
Impressum