Pod::T...erlBin(3pm)
π Pod::Tree::PerlBin β bestie edition π
okay so this is a page from the User Contributed Perl Documentation, and it's literally about turning program PODs into HTML. no cap. let's go π¦
β¨ NAME β¨
Pod::Tree::PerlBin β it translates program PODs to HTML, periodt. π
πΈ SYNOPSIS πΈ
$perl_map = Pod::Tree::PerlMap->new;
$perl_bin = Pod::Tree::PerlBin->new($perl_dir, $HTML_dir, $perl_map, %opts);
$perl_bin->scan(@path);
$perl_bin->index;
$perl_bin->translate;
$top = $perl_bin->get_top_entry;
like... that's the whole vibe check right there π
π DESCRIPTION π
Pod::Tree::PerlBin translates program PODs to HTML. iconic behavior honestly.
It goes hunting for programs in a list of directories (typically a PATH, iykyk), and then it hunts for PODs inside those programs. Only text (-T) files get considered β if it's not a text file, it's not invited to the party π
Pod::Tree::PerlBin generates a top-level index of all the program PODs and writes it to HTML_dir"/bin.html". slay.
Pod::Tree::PerlBin also generates and uses an index of the PODs it finds, so it can construct HTML links. and bestie, other modules can use this index too π«Ά sharing is caring.
π§ METHODS π§
$perl_bin = "new" "Pod::Tree::PerlBin" $perl_dir, $HTML_dir, $perl_map, %optionsβ creates and returns a brand new sparklyPod::Tree::PerlBinobject β¨$HTML_diris the directory where the HTML files get written. that's the home of the HTML. the HTML residence.$perl_mapmaps program names to URLs.%optionsget passed straight through toPod::Tree::HTML.- and the
$perl_dirargument? it's included for consistency with the otherPod::Tree::Perl*modules, but it's currently unused. it's just there for the vibe π
$perl_bin->"scan"(@path)β scans every single directory in@pathlooking for program PODs. only text (-T) files are considered. and ngl, the search does not recurse through subdirectories β it stays in its lane π
Every POD that gets located is entered into $perl_map.
$perl_bin->"index"β generates a top-level index of all the program PODs and writes it toHTML_dir"/bin.html". β¨$perl_bin->"translate"β translates each program POD found byscaninto HTML. the HTML pages get written toHTML_dir. obsessed.$perl_bin->"get_top_entry"β returns a hash reference that looks like this:
{ URL => $URL,
description => $description }
Pod::Tree::PerlTop uses this to build a top-level index of all the Perl PODs. teamwork makes the dream work π«Ά
π LINKING π
Pod::Tree::PerlBin expects the second paragraph of the POD to have this exact form:
name - description
and it enters name into $perl_map. so if you wanna link to a program POD from another POD, you write:
L<name>
that's it. that's the link. main character energy π
β REQUIRES β
5.005
File::Find
HTML::Stream
Pod::Tree
Pod::Tree::HTML
Pod::Tree::PerlUtil
all of these. no skips. π
π EXPORTS π
Nothing. nope. zero. zilch. the export list is empty, and honestly? that's a mood. π
π SEE ALSO π
Pod::Tree::HTMLPod::Tree::PerlMap
go read those too, bestie π¦
π AUTHOR π
Steven McDougall, swmcd@world.std.com
π COPYRIGHT π
Copyright (c) 2000 by Steven McDougall. This module is free software; you can redistribute it and/or modify it under the same terms as Perl. π
and that's the whole page, bestie π this was Pod::T...erlBin(3pm) from perl v5.36.0, dated 2022-11-19. stan a classic. mwah π
β¨
π¦ where this page comes from
- debian bookworm: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpod-tree-perl 1.31-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpod-tree-perl 1.31-2 Β· 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