1Module::Depends(3) User Contributed Perl Documentation Module::Depends(3)
2
3
4
6 Module::Depends - identify the dependencies of a distribution
7
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
15 Module::Depends extracts module dependencies from an unpacked distribu‐
16 tion tree.
17
18 Module::Depends only evaluates the META.yml shipped with a distribu‐
19 tion. This won't be effective until all distributions ship META.yml
20 files, so we suggest you take your life in your hands and look at Mod‐
21 ule::Depends::Intrusive.
22
24 new
25
26 simple constructor
27
28 dist_dir
29
30 Path where the distribution has been extracted to.
31
32 find_modules
33
34 scan the "dist_dir" to populate "libs", "requires", and
35 "build_requires"
36
37 libs
38
39 an array reference of lib lines
40
41 requires
42
43 A reference to a hash enumerating the prerequisite modules for this
44 distribution.
45
46 build_requires
47
48 A reference to a hash enumerating the modules needed to build the dis‐
49 tribution.
50
51 error
52
53 A reason, if any, for failing to get dependencies.
54
56 Richard Clamp, based on code extracted from the Fotango build system
57 originally by James Duncan and Arthur Bergman.
58
60 Copyright 2004,2007 Fotango. All Rights Reserved.
61
62 This module is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
64
66 Module::Depends::Intrusive
67
68
69
70perl v5.8.8 2007-05-29 Module::Depends(3)