Algori...e::HoA(3pm)
π Algori...e::HoA(3pm) β your bestie's guide to Algorithm::Dependency::Source::HoA π
okay so first things first, the manual page name is Algori...e::HoA(3pm) (it's truncated in the header, iconic behavior honestly, we move). This one lives in the User Contributed Perl Documentation section and it's about dependency sources, which sounds dry but it's actually so slay once you get it.
β¨ NAME β¨
Algorithm::Dependency::Source::HoA β Source for a HASH of ARRAYs
like. it's a source. made out of a hash of arrays. the name is not playing games with you bestie, it tells you exactly what it is π
πΈ VERSION πΈ
version 1.112
π¦ SYNOPSIS π¦
here's the whole vibe, look at the data structure first:
# The basic data structure
my $deps = {
foo => [ 'bar', 'baz' ],
bar => [],
baz => [ 'bar' ],
};
so foo depends on bar and baz, bar depends on literally nobody (main character energy fr), and baz depends on bar. and then you make the source:
# Create the source from it
my $Source = Algorithm::Dependency::Source::HoA->new( $deps );
and that's it. that's the whole thing. ate and left no crumbs π
π DESCRIPTION π
Algorithm::Dependency::Source::HoA implements a source where the item names are handed over in the absolute simplest form possible: a reference to a HASH of ARRAY references. that's the lowkey beauty of it β no weird file formats, no parsing drama, just a hash where every key points at an array of the things it depends on. periodt.
π METHODS π
heads up: this part only documents the methods that are different from the regular Algorithm::Dependency::Source methods. the rest you already know, iykyk.
π new $filename
when you're constructing a new Algorithm::Dependency::Source::HoA object, you gotta pass in an argument that's a reference to a HASH of ARRAY references, containing the names of other HASH elements. (yes the parameter is called $filename even though you're handing it a hashref, i don't make the rules, i just document them π)
it returns the object, or undef if the structure is not correct. so like, if you hand it garbage, you get undef back. no exceptions, no explanations, just undef. check for that bestie, fr fr.
β SEE ALSO β
Algorithm::DependencyAlgorithm::Dependency::Source
π«Ά SUPPORT π«Ά
bugs may be submitted through the RT bug tracker at <https://rt.cpan.org/Public/Dist/Display.html?Name=Algorithm-Dependency> β or, if you'd rather email, bug-Algorithm-Dependency@rt.cpan.org (mailto:bug-Algorithm-Dependency@rt.cpan.org). go tell them what's wrong, they wanna know π
π AUTHOR π
Adam Kennedy <adamk@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2003 by Adam Kennedy.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay one lil safety note bestie: pass it a properHASHofARRAYreferences or you're gettingundefhanded back to you like a bad vibe check. that's not me being dramatic, that's just the method doin its job π
and that's the whole page!! written by the incredible perl v5.40.1 on 2025-09-18. tysm for reading, go build something cute with your dependency graph, mwah π β¨
π¦ where this page comes from
- ubuntu resolute: libalgorithm-dependency-perl 1.112-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libalgorithm-dependency-perl 1.112-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms