Pod::T...erlFunc(3pm)
π Pod::Tree::PerlFunc π
okay bestie, pull up a chair, because this is the manual page for Pod::Tree::PerlFunc, straight out of the User Contributed Perl Documentation collection. it does one (1) thing and it does it gorgeously. let's get into it π«Ά
β¨ NAME β¨
Pod::Tree::PerlFunc β translate perlfunc.pod to HTML. that's the whole vibe. iconic. no notes. π
πΈ SYNOPSIS πΈ
here's the little ritual you perform, in order, no skipping steps:
$perl_map = Pod::Tree::PerlMap->new;
$perl_func = Pod::Tree::PerlFunc->new($perl_dir, $HTML_dir, $perl_map, %opts);
$perl_func->scan;
$perl_func->index;
$perl_func->translate;
π¦ DESCRIPTION π¦
so Pod::Tree::PerlFunc translates perlfunc.pod to HTML. like, it takes that one giant pod file and it splits it into a whole separate HTML page for every single function description in it. yes, every one. she's thorough.
the pages for the individual descriptions are named after the function and written to a func/ subdirectory. and then perlfunc.html is generated as an index to all the pages in func/.
Pod::Tree::PerlFunc also generates and uses an index of the functions that it finds in perlfunc.pod to construct HTML links. and here's the bestie part: other modules can use this index too. sharing is caring fr fr.
π METHODS π
$perl_func = "new" "Pod::Tree::PerlFunc" $perl_dir, $HTML_dir, $perl_map, %options
creates and returns a shiny new Pod::Tree::PerlFunc object. new object smell β¨
$perl_diris the root of the Perl source tree. π³$HTML_diris the directory where HTML files will be written. π$perl_mapmaps function names to URLs. πΊοΈ%optionsare passed through toPod::Tree::HTML. π
$perl_func->"scan"
reads perlfunc.pod and identifies all the functions in it. every function that gets identified is entered into $perl_map. she's taking attendance and nobody's escaping it. π
$perl_func->"index"
generates a top-level index of all the functions. the index is written to HTML_dir/pod/perlfunc.html. that's the table of contents, the whole map, the moment. ποΈ
$perl_func->"translate"
translates each function found by scan to HTML. the HTML pages are written to HTML_dir/pod/func/. π«
π LINKING π
Pod::Tree::PerlFunc indexes every =item paragraph in perlfunc.html. so if you wanna link, for example, to the abs function, you write:
L<func/abs>
that's it. that's the link. go forth and hyperlink. π
π¦ REQUIRES π¦
5.005;Pod::Tree;Pod::Tree::HTML;Pod::Tree::PerlUtil;
π EXPORTS π
Nothing. she gives you nothing and expects nothing back. low maintenance queen. π
π SEE ALSO π
Pod::Tree::HTML, Pod::Tree::PerlMap
π 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 itself.
and that's the whole page bestie!! no cap, every single detail preserved, every option and path intact, nothing skipped. π
perl v5.36.0 Β· 2022-11-19 β mwah, that's the version and date this lil doc came from. stay slaying, go read perlfunc.pod, ily π«Άπβ¨
π¦ 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