Pod::Html(3pm)
π¦ Pod::Html(3pm) π¦
okay bestie, welcome to the Pod::Html page from the Perl Programmers Reference Guide β itβs giving βturn pod into HTMLβ realness, and we are obsessed. β¨
πΈ NAME πΈ
Pod::Html β module to convert pod files to HTML. periodt π
π« SYNOPSIS π«
use Pod::Html;
pod2html([options]);
π DESCRIPTION π
Converts files from pod format (see perlpod) to HTML format. It can automatically generate indexes and cross-references, and it keeps a cache of things it knows how to cross-reference. no cap, itβs lowkey doing the most so your docs can slay. π
β¨ FUNCTIONS β¨
π§ pod2html π§
Example time, bestie β hereβs the exact pod2html call:
pod2html("pod2html",
"--podpath=lib:ext:pod:vms",
"--podroot=/usr/src/perl",
"--htmlroot=/perl/nmanual",
"--recurse",
"--infile=foo.pod",
"--outfile=/perl/nmanual/foo.html");
so pod2html takes the following arguments, and yes weβre going through all of them:
--backlinkβ Turns every"head1"heading into a link back to the top of the page. By default, no backlinks are generated.--cachedir=nameβ Creates the directory cache in the given directory.--css=stylesheetβ Specify the URL of a cascading style sheet. Also disables all HTML/CSS"style"attributes that are output by default (to avoid conflicts).--flushβ Flushes the directory cache.--header,--noheaderβ Creates header and footer blocks containing the text of the"NAME"section. By default, no headers are generated.--helpβ Displays the usage message.--htmldir=nameβ Sets the directory to which all cross references in the resulting html file will be relative. Not passing this causes all links to be absolute since this is the value that tellsPod::Htmlthe root of the documentation tree. β οΈ Do not use this and--htmlrootin the same call topod2html; they are mutually exclusive.--htmlroot=nameβ Sets the base URL for the HTML files. When cross-references are made, the HTML root is prepended to the URL. Do not use this if relative links are desired: use--htmldirinstead. Do not pass both this and--htmldirtopod2html; they are mutually exclusive.--index,--noindexβ Generate an index at the top of the HTML file. This is the default behaviour.--infile=nameβ Specify the pod file to convert. Input is taken from STDIN if no infile is specified.--outfile=nameβ Specify the HTML file to create. Output goes to STDOUT if no outfile is specified.--poderrors,--nopoderrorsβ Include a"POD ERRORS"section in the outfile if there were any POD errors in the infile. This section is included by default.--podpath=name:...:nameβ Specify which subdirectories of the podroot contain pod files whose HTML converted forms can be linked to in cross references.--podroot=nameβ Specify the base directory for finding library pods. Default is the current working directory.--quiet,--noquietβ Donβt display mostly harmless warning messages. These messages will be displayed by default. But this is not the same as"verbose"mode.--recurse,--norecurseβ Recurse into subdirectories specified in podpath (default behaviour).--title=titleβ Specify the title of the resulting HTML file.--verbose,--noverboseβ Display progress messages. By default, they wonβt be displayed.
π¦ Formerly Exported Auxiliary Functions π¦
Prior to perl-5.36, the following three functions were exported by Pod::Html, either by default or on request:
htmlify()(by default)anchorify()(upon request)relativize_url()(upon request)
The definition and documentation of these functions have been moved to Pod::Html::Util, viewable via perldoc Pod::Html::Util.
Beginning with perl-5.38 these functions must be explicitly imported from Pod::Html::Util. Please modify your code as needed.
πΏ ENVIRONMENT πΏ
Uses $Config{pod2html} to setup default options. π
π«Ά AUTHOR π«Ά
Marc Green, <marcgreen@cpan.org>.
Original version by Tom Christiansen, <tchrist@perl.com>.
π SEE ALSO π
Go peek at perlpod β thatβs the one, bestie. π¦
π COPYRIGHT π
This program is distributed under the Artistic License. periodt. π
mwah π β source/version perl v5.42.3, date 2026-11-03, page Pod::Html(3pm). Bye bestie! π«Ά
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms