1Module::Math::Depends(3U)ser Contributed Perl DocumentatiMoondule::Math::Depends(3)
2
3
4
6 Module::Math::Depends - Convenience object for manipulating module
7 dependencies
8
10 This is a small convenience module created originally as part of
11 Module::Inspector but released seperately, in the hope that people
12 might find it useful in other contexts.
13
15 new
16 my $deps = Module::Math::Depends->new;
17
18 Creates a new, empty, dependency set.
19
20 from_hash
21 my $deps = Module::Math::Depends->from_hash( \%modules );
22
23 Creates a new dependency set from a raw hashref of modules names and
24 versions.
25
26 add_module
27 $deps->add_module( 'My::Module' => '1.23' );
28
29 Adds a single module dependency to the set.
30
31 Returns true, or dies on error.
32
33 merge
34 $my_deps->merge( $your_deps );
35
36 The "merge" method takes another dependency set and merges it into the
37 current one, taking the highest version where both sets contain a
38 module.
39
40 Returns true or dies on error.
41
42 as_string
43 print $depends->as_string;
44
45 Converts the dependency set to a simple printable string.
46
48 This module is stored in an Open Repository at the following address.
49
50 http://svn.ali.as/cpan/trunk/Module-Math-Depends
51 <http://svn.ali.as/cpan/trunk/Module-Math-Depends>
52
53 Write access to the repository is made available automatically to any
54 published CPAN author, and to most other volunteers on request.
55
56 If you are able to submit your bug report in the form of new (failing)
57 unit tests, or can apply your fix directly instead of submitting a
58 patch, you are strongly encouraged to do so as the author currently
59 maintains over 100 modules and it can take some time to deal with non-
60 Critcal bug reports or patches.
61
62 This will guarentee that your issue will be addressed in the next
63 release of the module.
64
65 If you cannot provide a direct test or fix, or don't have time to do
66 so, then regular bug reports are still accepted and appreciated via the
67 CPAN bug tracker.
68
69 http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Math-Depends
70 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Math-Depends>
71
72 For other issues, for commercial enhancement or support, or to have
73 your write access enabled for the repository, contact the author at the
74 email address above.
75
77 Adam Kennedy <adamk@cpan.org>
78
80 Copyright 2006 - 2008 Adam Kennedy.
81
82 This program is free software; you can redistribute it and/or modify it
83 under the same terms as Perl itself.
84
85 The full text of the license can be found in the LICENSE file included
86 with this module.
87
88
89
90perl v5.12.0 2008-08-16 Module::Math::Depends(3)