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
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
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 build_requires
42 A reference to a hash enumerating the modules needed to build the
43 distribution.
44
45 error
46 A reason, if any, for failing to get dependencies.
47
49 Richard Clamp, based on code extracted from the Fotango build system
50 originally by James Duncan and Arthur Bergman.
51
53 Copyright 2004, 2007, 2008 Fotango. All Rights Reserved.
54
55 This module is free software; you can redistribute it and/or modify it
56 under the same terms as Perl itself.
57
59 Module::Depends::Intrusive
60
61
62
63perl v5.12.0 2010-05-03 Module::Depends(3)