SYNOPSIS

  # The basic data structure
  my $deps = {
      foo => [ 'bar', 'baz' ],
      bar => [],
      baz => [ 'bar' ],
      };

  # Create the source from it
  my $Source = Algorithm::Dependency::Source::HoA->new( $deps );

DESCRIPTION

\*(C`Algorithm::Dependency::Source::HoA\*(C' implements a source where the items names are provided in the most simple form, a reference to a \*(C`HASH\*(C' of \*(C`ARRAY\*(C' references.

METHODS

This documents the methods differing from the ordinary Algorithm::Dependency::Source methods. When constructing a new \*(C`Algorithm::Dependency::Source::HoA\*(C' object, an argument should be provided of a reference to a \s-1HASH\s0 of \s-1ARRAY\s0 references, containing the names of other \s-1HASH\s0 elements.

Returns the object, or \*(C`undef\*(C' if the structure is not correct.

SUPPORT

To file a bug against this module, use the \s-1CPAN\s0 bug tracking system

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Algorithm-Dependency <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Algorithm-Dependency>

For other comments, contact the author.

AUTHOR

Adam Kennedy <[email protected]>

RELATED TO Algorithm::Dependency::Source::HoA…

Algorithm::Dependency, Algorithm::Dependency::Source

COPYRIGHT

Copyright 2003 - 2009 Adam Kennedy.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the \s-1LICENSE\s0 file included with this module.