1Algorithm::Dependency::USsoeurrcCeo:n:tHroiAb(u3t)ed PerAllgDoorciutmhemn:t:aDteipoenndency::Source::HoA(3)
2
3
4
6 Algorithm::Dependency::Source::HoA - Source for a HASH of ARRAYs
7
9 # The basic data structure
10 my $deps = {
11 foo => [ 'bar', 'baz' ],
12 bar => [],
13 baz => [ 'bar' ],
14 };
15
16 # Create the source from it
17 my $Source = Algorithm::Dependency::Source::HoA->new( $deps );
18
20 "Algorithm::Dependency::Source::HoA" implements a source where the
21 items names are provided in the most simple form, a reference to a
22 "HASH" of "ARRAY" references.
23
25 This documents the methods differing from the ordinary
26 Algorithm::Dependency::Source methods.
27
28 new $filename
29 When constructing a new "Algorithm::Dependency::Source::HoA" object, an
30 argument should be provided of a reference to a HASH of ARRAY
31 references, containing the names of other HASH elements.
32
33 Returns the object, or "undef" if the structure is not correct.
34
36 To file a bug against this module, use the CPAN bug tracking system
37
38 http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Algorithm-Dependency
39 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Algorithm-Dependency>
40
41 For other comments, contact the author.
42
44 Adam Kennedy <adamk@cpan.org>
45
47 Algorithm::Dependency, Algorithm::Dependency::Source
48
50 Copyright 2003 - 2009 Adam Kennedy.
51
52 This program is free software; you can redistribute it and/or modify it
53 under the same terms as Perl itself.
54
55 The full text of the license can be found in the LICENSE file included
56 with this module.
57
58
59
60perl v5.12.0 2009-04-A1l4gorithm::Dependency::Source::HoA(3)