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
40 For other comments, contact the author.
41
43 Adam Kennedy <adamk@cpan.org>
44
46 Algorithm::Dependency, Algorithm::Dependency::Source
47
49 Copyright 2003 - 2009 Adam Kennedy.
50
51 This program is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself.
53
54 The full text of the license can be found in the LICENSE file included
55 with this module.
56
57
58
59perl v5.28.0 2009-04-A1l4gorithm::Dependency::Source::HoA(3)