Pod::Man(3pm)
π NAME π
Pod::Man(3pm) β convert POD data to formatted *roff input π
Okay so this is the Pod::Man(3pm) page from the Perl Programmers Reference Guide, and bestie, if you write Perl docs, this module is lowkey about to be your new fave. β¨
β¨ SYNOPSIS β¨
Like, here's the whole vibe check:
use Pod::Man;
my $parser = Pod::Man->new (release => $VERSION, section => 8);
# Read POD from STDIN and write to STDOUT.
$parser->parse_file (\*STDIN);
# Read POD from file.pod and write to file.1.
$parser->parse_from_file ('file.pod', 'file.1');
π¦ DESCRIPTION π¦
Pod::Man is the module that takes documentation written in the POD format β literally the preferred language for documenting Perl, periodt β and converts it into *roff input using the man macro set. The resulting *roff code is suitable for display on a terminal using nroff(1), normally via man(1), or printing using troff(1). It is conventionally invoked using the driver script pod2man, but it can also be used directly. π«Ά
By default β on non-EBCDIC systems β Pod::Man outputs UTF-8. Its output should work with the man program on systems that use groff (most Linux distributions) or mandoc (most BSD variants), but may result in mangled output on older UNIX systems. To choose a different, possibly more backward-compatible output mangling on such systems, set the "encoding" option to "roff" (the default in earlier Pod::Man versions). See the "encoding" option and "ENCODING" for more details. π
See "COMPATIBILTY" for the versions of Pod::Man with significant backward-incompatible changes (other than constructor options, whose versions are documented below), and the versions of Perl that included them. Yes, that spelling is what the page says β iykyk. π
π CLASS METHODS π
π§ new(ARGS) π§
Create a new Pod::Man object. ARGS should be a list of key/value pairs, where the keys are chosen from the following. Each option is annotated with the version of Pod::Man in which that option was added with its current meaning. π
centerβ [1.00] Sets the centered page header for the.THmacro. The default, if this option is not specified, is"User Contributed Perl Documentation". πdateβ [4.00] Sets the left-hand footer for the.THmacro. If this option is not set, the contents of the environment variablePOD_MAN_DATE, if set, will be used. Failing that, the value ofSOURCE_DATE_EPOCH, the modification date of the input file, or the current time ifstat()can't find that file (which will be the case if the input is from"STDIN") will be used. If taken from any source other thanPOD_MAN_DATE(which is used verbatim), the date will be formatted as"YYYY-MM-DD"and will be based on UTC (so that the output will be reproducible regardless of local time zone). π°οΈencodingβ [5.00] Specifies the encoding of the output. The value must be an encoding recognized by the Encode module (seeEncode::Supported), or the special values"roff"or"groff". The default on non-EBCDIC systems is UTF-8. π₯- If the output contains characters that cannot be represented in this encoding, that is an error that will be reported as configured by the
"errors"option. If error handling is other than"die", the unrepresentable character will be replaced with the Encode substitution character (normally"?"). π - If the
"encoding"option is set to the special value"groff"(the default on EBCDIC systems), or if the Encode module is not available and the encoding is set to anything other than"roff",Pod::Manwill translate all non-ASCII characters to"\[uNNNN]"Unicode escapes. These are not traditionally part of the*rofflanguage, but are supported by groff and mandoc and thus by the majority of manual page processors in use today. β¨ - If the
"encoding"option is set to the special value"roff",Pod::Manwill do its historic transformation of (some) ISO 8859-1 characters into*roffescapes that may be adequate in troff and may be readable (if ugly) in nroff. This was the default behavior of versions ofPod::Manbefore 5.00. With this encoding, all other non-ASCII characters will be replaced with"X". It may be required for very old troff and nroff implementations that do not support UTF-8, but its representation of any non-ASCII character is very poor and often specific to European languages. π - If the output file handle has a PerlIO encoding layer set, setting
"encoding"to anything other than"groff"or"roff"will be ignored and no encoding will be done byPod::Man. It will instead rely on the encoding layer to make whatever output encoding transformations are desired. π§ - WARNING: The input encoding of the POD source is independent from the output encoding, and setting this option does not affect the interpretation of the POD input. Unless your POD source is US-ASCII, its encoding should be declared with the
"=encoding"command in the source. If this is not done,Pod::Simplewill will attempt to guess the encoding and may be successful if it's Latin-1 or UTF-8, but it will produce warnings. Seeperlpod(1)for more information. π¨
- If the output contains characters that cannot be represented in this encoding, that is an error that will be reported as configured by the
errorsβ [2.27] How to report errors."die"says to throw an exception on any POD formatting error."stderr"says to report errors on standard error, but not to throw an exception."pod"says to include a POD ERRORS section in the resulting documentation summarizing the errors."none"ignores POD errors entirely, as much as possible. The default is"pod". πfixedβ [1.00] The fixed-width font to use for verbatim text and code. Defaults to"CW". Some systems prefer"CR"instead. Only matters for troff output. πfixedboldβ [1.00] Bold version of the fixed-width font. Defaults to"CB". Only matters for troff output. πfixeditalicβ [1.00] Italic version of the fixed-width font (something of a misnomer, since most fixed-width fonts only have an oblique version, not an italic version). Defaults to"CI". Only matters for troff output. πΈfixedbolditalicβ [1.00] Bold italic (in theory, probably oblique in practice) version of the fixed-width font.Pod::Mandoesn't assume you have this, and defaults to"CB". Some systems (such as Solaris) have this font available as"CX". Only matters for troff output. πguessworkβ [5.00] By default,Pod::Manapplies some default formatting rules based on guesswork and regular expressions that are intended to make writing Perl documentation easier and require less explicit markup. These rules may not always be appropriate, particularly for documentation that isn't about Perl. This option allows turning all or some of it off. π§- The special value
"all"enables all guesswork. This is also the default for backward compatibility reasons. The special value"none"disables all guesswork. Otherwise, the value of this option should be a comma-separated list of one or more of the following keywords:functionsβ Convert function references likefoo()to bold even if they have no markup. The function name accepts valid Perl characters for function names (including":"), and the trailing parentheses must be present and empty. π₯manrefβ Make the first part (before the parentheses) of manual page references likefoo(1)bold even if they have no markup. The section must be a single number optionally followed by lowercase letters. πquotingβ If no guesswork is enabled, any text enclosed inC<>is surrounded by double quotes in nroff (terminal) output unless the contents are already quoted. When this guesswork is enabled, quote marks will also be suppressed for Perl variables, function names, function calls, numbers, and hex constants. π¬variablesβ Convert Perl variable names to a fixed-width font even if they have no markup. This transformation will only be apparent in troff output, or some other output format (unlike nroff terminal output) that supports fixed-width fonts. π
- Any unknown guesswork name is silently ignored (for potential future compatibility), so be careful about spelling. π
- The special value
languageβ [5.00] Add commands telling groff that the input file is in the given language. The value of this setting must be a language abbreviation for which groff provides supplemental configuration, such as"ja"(for Japanese) or"zh"(for Chinese). π- Specifically, this adds:
.mso <language>.tmac
.hla <language>
to the start of the file, which configure correct line breaking for the specified language. Without these commands, groff may not know how to add proper line breaks for Chinese and Japanese text if the manual page is installed into the normal manual page directory, such as /usr/share/man. π¦
- On many systems, this will be done automatically if the manual page is installed into a language-specific manual page directory, such as
/usr/share/man/zh_CN. In that case, this option is not required. β¨ - Unfortunately, the commands added with this option are specific to groff and will not work with other troff and nroff implementations. π
lquoteβ [4.08] Sets the left quote mark used to surroundC<>text. πrquoteβ [4.08] Sets the right quote mark used to surroundC<>text. π
Either may also be set to the special value "none", in which case no quote mark is added on that side of C<> text (but the font is still changed for troff output). Also see the "quotes" option, which can be used to set both quotes at once. If both "quotes" and one of the other options is set, "lquote" or "rquote" overrides "quotes". π«Ά
nameβ [4.08] okay so this sets the name of the manual page for the.THmacro. Without this option, the manual name is set to the uppercased base name of the file being converted unless the manual section is3, in which case the path is parsed to see if it is a Perl module path. If it is, a path like.../lib/Pod/Man.pmis converted into a name likePod::Man. This option, if given, overrides any automatic determination of the name. π«Ά
If generating a manual page from standard input, the name will be set to STDIN if this option is not provided. In this case, providing this option is strongly recommended to set a meaningful manual page name.
nourlsβ [2.27] normally,L<>formatting codes with a URL but anchor text are formatted to show both the anchor text and the URL. In other words:
L<foo|http://example.com/>
is formatted as:
foo <http://example.com/>
This option, if set to a true value, suppresses the URL when anchor text is given, so this example would be formatted as just foo. This can produce less cluttered output in cases where the URLs are not particularly important. β¨
quotesβ [4.00] sets the quote marks used to surroundC<>text. If the value is a single character, it is used as both the left and right quote. Otherwise, it is split in half, and the first half of the string is used as the left quote and the second is used as the right quote. π
This may also be set to the special value none, in which case no quote marks are added around C<> text (but the font is still changed for troff output).
Also see the lquote and rquote options, which can be used to set the left and right quotes independently. If both quotes and one of the other options is set, lquote or rquote overrides quotes.
releaseβ [1.00] sets the centered footer for the.THmacro. By default, this is set to the version of Perl you run Pod::Man under. Setting this to the empty string will cause some*roffimplementations to use the system default value. π
Note that some system an macro sets assume that the centered footer will be a modification date and will prepend something like Last modified: . If this is the case for your target system, you may want to set release to the last modified date and date to the version number.
sectionβ [1.00] sets the section for the.THmacro. The standard section numbering convention is to use1for user commands,2for system calls,3for functions,4for devices,5for file formats,6for games,7for miscellaneous information, and8for administrator commands. There is a lot of variation here, however; some systems (like Solaris) use4for file formats,5for miscellaneous information, and7for devices. Still others use1minstead of8, or some mix of both. About the only section numbers that are reliably consistent are1,2, and3. π
By default, section 1 will be used unless the file ends in .pm in which case section 3 will be selected.
stderrβ [2.19] if set to a true value, send error messages about invalid POD to standard error instead of appending a POD ERRORS section to the generated*roffoutput. This is equivalent to settingerrorstostderriferrorsis not already set. π
This option is for backward compatibility with Pod::Man versions that did not support errors. Normally, the errors option should be used instead.
utf8β [2.21] this option used to set the output encoding to UTF-8. Since this is now the default, it is ignored and does nothing. π
π INSTANCE METHODS π
bestie, as a derived class from Pod::Simple, Pod::Man supports the same methods and interfaces. See Pod::Simple for all the details. This section summarizes the most-frequently-used methods and the ones added by Pod::Man.
output_fh(FH) π¦
Direct the output from parse_file(), parse_lines(), or parse_string_document() to the file handle FH instead of STDOUT.
output_string(REF) π
Direct the output from parse_file(), parse_lines(), or parse_string_document() to the scalar variable pointed to by REF, rather than STDOUT. For example:
my $man = Pod::Man->new();
my $output;
$man->output_string(\$output);
$man->parse_file('/some/input/file');
Be aware that the output in that variable will already be encoded in UTF-8.
parse_file(PATH) πΈ
Read the POD source from PATH and format it. By default, the output is sent to STDOUT, but this can be changed with the output_fh() or output_string() methods.
parse_from_file(INPUT, OUTPUT) and parse_from_filehandle(FH, OUTPUT) π
Read the POD source from INPUT, format it, and output the results to OUTPUT.
parse_from_filehandle() is provided for backward compatibility with older versions of Pod::Man. parse_from_file() should be used instead.
parse_lines(LINES[, ...[, undef]]) β
Parse the provided lines as POD source, writing the output to either STDOUT or the file handle set with the output_fh() or output_string() methods. This method can be called repeatedly to provide more input lines. An explicit undef should be passed to indicate the end of input.
This method expects raw bytes, not decoded characters.
parse_string_document(INPUT) π§
Parse the provided scalar variable as POD source, writing the output to either STDOUT or the file handle set with the output_fh() or output_string() methods.
This method expects raw bytes, not decoded characters.
π ENCODING π
Okay bestie, big glow-up alert β¨ As of Pod::Man 5.00, the default output encoding is UTF-8. This should work correctly on any modern system that uses either groff (most Linux distributions) or mandoc (Alpine Linux and most BSD variants, including macOS). Slay π
Youβll probably need a UTF-8 locale to actually see correct output. It may already be the default; if not, set the LANG or LC_CTYPE environment variables to an appropriate locale. The locale C.UTF-8 is available on most systems if you want correct output without changing the other things locales affect, such as collation. Iconic, honestly π
The backward-compatible output format used in Pod::Man versions before 5.00 is available by setting the "encoding" option to "roff". This may produce marginally nicer results on older UNIX versions that do not use groff or mandoc, but none of the available options will correctly render Unicode characters on those systems. Yeah. Itβs giving βvintage but limitedβ π
Below are some additional details about how this choice was made and some discussion of alternatives. Buckle up, bestie π¦
π History π
The default output encoding for Pod::Man has been a long-standing problem. troff and nroff predate Unicode by a significant margin, and their implementations for many UNIX systems reflect that legacy. Itβs common for Unicode to not be supported in any form. Literally ancient behavior π
Because of this, versions of Pod::Man prior to 5.00 maintained the highly conservative output of the original pod2man, which output pure ASCII with complex macros to simulate common western European accented characters when processed with troff. The nroff output was awkward and sometimes incorrect, and characters not used in western European scripts were replaced with "X". This choice maximized backwards compatibility with man and nroff/troff implementations at the cost of incorrect rendering of many POD documents, particularly those containing peopleβs names. Not the names getting done dirty π
The modern implementations, groff (used in most Linux distributions) and mandoc (used by most BSD variants), do now support Unicode. Other UNIX systems often do not, but theyβre now a tiny minority of the systems people use on a daily basis. Itβs increasingly common (for very good reasons) to use Unicode characters for POD documents rather than using ASCII conversions of peopleβs names or avoiding non-English text, making the limitations in the old output format more apparent. Periodt π
Four options have been proposed to fix this:
- Optionally support UTF-8 output but donβt change the default. This is the approach taken since Pod::Man 2.1.0, which added the
"utf8"option. Some Pod::Man users use this option for better output on platforms known to support Unicode, but since the defaults have not changed, people continued to encounter (and file bug reports about) the poor default rendering. The bug reports were not serving cunt β¨ - Convert characters to troff
\(xxescapes. This requires maintaining a large translation table and addresses only a tiny part of the problem, since many Unicode characters have no standard troff name.groffhas the largest list, but if one is willing to assumegroffis the formatter, the next option is better. Lowkey a lot of work for a tiny fix π« - Convert characters to groff
\[uNNNN]escapes. This is implemented as the"groff"encoding for those who want to use it, and is supported by bothgroffandmandoc. However, it is no better than UTF-8 output for portability to other implementations. See"Testing results"for more details. Itβs giving βvalid but not the momentβ π - Change the default output format to UTF-8 and ask those who want maximum backward compatibility to explicitly select the old encoding. This fixes the issue for most users at the cost of backwards compatibility. While the rendering of non-ASCII characters is different on older systems that donβt support UTF-8, itβs not always worse than the old output. And thatβs the tea β
Pod::Man 5.00 and later makes the last choice. This arguably produces worse output when manual pages are formatted with troff into PostScript or PDF, but doing this is rare and normally manual, so the encoding can be changed in those cases. The older output encoding is available by setting "encoding" to "roff". Main character energy: UTF-8 default, old encoding available on demand π
π§ͺ Testing results π§ͺ
Hereβs the results of testing "encoding" values of "utf-8" and "groff" on various operating systems. The testing methodology was to create man/man1 in the current directory, copy encoding.utf8 or encoding.groff from the podlators 5.00 distribution to man/man1/encoding.1, and then run:
LANG=C.UTF-8 MANPATH=$(pwd)/man man 1 encoding
If the locale is not explicitly set to one that includes UTF-8, the Unicode characters were usually converted to ASCII (by, for example, dropping an accent) or deleted or replaced with "<?>" if there was no conversion. The "<?>" is giving confused emoji π
Tested on 2022-09-25. Many thanks to the GCC Compile Farm project for access to testing hosts π«Ά
- AIX 7.1 β UTF-8: no [1]; groff: no [2]
- Alpine 3.15.0 β UTF-8: yes; groff: yes
- CentOS 7.9 β UTF-8: yes; groff: yes
- Debian 7 β UTF-8: yes; groff: yes
- FreeBSD 13.0 β UTF-8: yes; groff: yes
- NetBSD 9.2 β UTF-8: yes; groff: yes
- OpenBSD 7.1 β UTF-8: yes; groff: yes
- openSUSE Leap 15.4 β UTF-8: yes; groff: yes
- Solaris 10 β UTF-8: yes; groff: no [2]
- Solaris 11 β UTF-8: no [3]; groff: no [3]
I did not have access to a macOS system for testing, but since it uses mandoc, its behavior is probably the same as the BSD hosts. We love an educated guess bestie π
Notes:
- [1] Unicode characters were converted to one or two random ASCII characters unrelated to the original character. Random? Not the character assassination π
- [2] Unicode characters were shown as the body of the groff escape rather than the indicated character (in other words, text like
"[u00EF]"). The escape said βIβm hereβ but did not serve π - [3] Unicode characters were deleted entirely, as if they werenβt there. Using
nroff -maninstead ofmanto format the page showed the same results as Solaris 10. Usinggroff -k -man -Tutf8to format the page produced the correct output. We love a workaround that actually works β¨
PostScript and PDF output using groff on a Debian 12 system do not support combining accent marks or SMP characters due to a lack of support in the default output font. Not the font catching strays π
Testing on additional platforms is welcome. Please let the author know if you have additional results. We love crowd-sourced knowledge, fr fr π¦
π¨ DIAGNOSTICS π¨
roff font should be 1 or 2 chars, not "%s"β (F) You specified a *roff font (using"fixed","fixedbold", etc.) that wasnβt either one or two characters. Pod::Man doesnβt support *roff fonts longer than two characters, although some *roff extensions do (the canonical versions ofnroffandtroffdonβt either). Two chars max, bestie, weβre not doing a whole novel πInvalid errors setting "%s"β (F) The"errors"parameter to the constructor was set to an unknown value. That value did not pass the vibe check π¬Invalid quote specification "%s"β (F) The quote specification given (the"quotes"option to the constructor) was invalid. A quote specification must be either one character long or an even number (greater than one) characters long. Math is mathing, bestie π₯POD document had syntax errorsβ (F) The POD document being formatted had syntax errors and the"errors"option was set to"die". It really said βIβm outβ π
πΏ ENVIRONMENT πΏ
PERL_COREβ If set andEncodeis not available, silently fall back to an encoding of"groff"without complaining to standard error. This environment variable is set during Perl core builds, which buildEncodeafterpodlators.Encodeis expected to not (yet) be available in that case. Sneaky but intentional π§POD_MAN_DATEβ If set, this will be used as the value of the left-hand footer unless the"date"option is explicitly set, overriding the timestamp of the input file or the current time. This is primarily useful to ensure reproducible builds of the same output file given the same source and Pod::Man version, even when file timestamps may not be consistent. Reproducible builds are that girl πSOURCE_DATE_EPOCHβ If set, andPOD_MAN_DATEand the"date"options are not set, this will be used as the modification time of the source file, overriding the timestamp of the input file or the current time. It should be set to the desired time in seconds since UNIX epoch. This is primarily useful to ensure reproducible builds of the same output file given the same source and Pod::Man version, even when file timestamps may not be consistent. See<https://reproducible-builds.org/specs/source-date-epoch/>for the full specification. Bestie, this is the reproducibility blueprint π
(Arguably, according to the specification, this variable should be used only if the timestamp of the input file is not available and Pod::Man uses the current time. However, for reproducible builds in Debian, results were more reliable if this variable overrode the timestamp of the input file.) Debian said βactually, override it,β and honestly? Fair π
β¨ COMPATIBILITY β¨
okay bestie, storytime π β here's how this module grew up:
- Pod::Man 1.02 (based on Pod::Parser) was the very first version included with Perl, shipped in Perl 5.6.0. baby's first release πΌ
- The current API based on Pod::Simple showed up in Pod::Man 2.00. Then Pod::Man 2.04 was included in Perl 5.9.3, the first version of Perl to incorporate those changes. This is the first version that correctly supports all modern POD syntax. glow-up complete β¨
- The
parse_from_filehandle()method was re-added for backward compatibility in Pod::Man 2.09, included in Perl 5.9.4. (yes we brought it back, we missed it π) - Support for anchor text in
L<>links of type URL was added in Pod::Man 2.23, included in Perl 5.11.5. parse_lines(),parse_string_document(), andparse_file()set a default output file handle of"STDOUT"if one was not already set as of Pod::Man 2.28, included in Perl 5.19.5.- Support for
SOURCE_DATE_EPOCHandPOD_MAN_DATEwas added in Pod::Man 4.00, included in Perl 5.23.7, and generated dates were changed to use UTC instead of the local time zone. This is also the first release that aligned the module version and the version of the podlators distribution. From this point forward, all modules included in podlators, and the podlators distribution itself, share the same version number. one version to rule them all π - Pod::Man 4.10, included in Perl 5.27.8, changed the formatting for manual page references and function names to bold instead of italic, following the current Linux manual page standard. slay, standards compliance π
- Pod::Man 5.00, included in Perl 5.37.7, changed the default output encoding to UTF-8, overridable with the new
"encoding"option. It also fixed problems with bold or italic extending too far when used withC<>escapes, and began converting Unicode zero-width spaces (U+200B) to the"\:"*roff escape. It also dropped attempts to add subtle formatting corrections in the output that would only be visible when typeset with troff β which had previously been a significant source of bugs. bye felicia to the bug farm π - Pod::Man v6.0.0 and later unconditionally convert
"-"to the"\-"*roff escape, representing an ASCII hyphen-minus. Earlier versions attempted to use heuristics to decide when a given"-"character should translate to a hyphen-minus or a true hyphen, but those heuristics were buggy and fragile. v6.0.0 and later also unconditionally convert"`"and"'"to ASCII grave accent and apostrophe marks instead of the default *roff behavior of interpreting them as paired quotes. no more guessing games, periodt π
π BUGS π
ngl, there are numerous bugs and language-specific assumptions in the nroff fallbacks for accented characters in the "roff" encoding. But hear me out β since the whole point of this encoding is backward compatibility with the output from earlier versions of Pod::Man, and it's deprecated except when necessary to support old systems, those bugs are unlikely to ever get fixed. it's giving "legacy code, we don't touch it" π
Also, Pod::Man doesn't handle font names longer than two characters. Neither do most troff implementations, but groff does as an extension. It would be nice to support as an option for those who want to use it. someone pitch that, fr fr π«Ά
β οΈ CAVEATS β οΈ
πΈ Sentence spacing πΈ
Pod::Man copies the input spacing verbatim to the output *roff document. Which means your output will be affected by how nroff generally handles sentence spacing. buckle up π¦
nroff dates from an era in which it was standard to use two spaces after sentences, and it will always add two spaces after a line-ending period (or similar punctuation) when reflowing text. For example, this input:
=pod
One sentence.
Another sentence.
will result in two spaces after the period when the text is reflowed. If you use two spaces after sentences anyway, this will be consistent β although you'll have to be careful to not end a line with an abbreviation such as "e.g." or "Ms.". Output will also be consistent if you use the *roff style guide (and XKCD 1285 <https://xkcd.com/1285/>) recommendation of putting a line break after each sentence, although that will consistently produce two spaces after each sentence, which may not be what you want. iykyk π
If you prefer one space after sentences (which is the more modern style), you'll unfortunately need to ensure that no line in the middle of a paragraph ends in a period or similar sentence-ending paragraph. Otherwise, nroff will add a two spaces after that sentence when reflowing, and your output document will have inconsistent spacing. you've been warned bestie π
π Hyphens and quotes π
The *roff language distinguishes between two types of hyphens: "-", which is a true typesetting hyphen (roughly equivalent to the Unicode U+2010 code point), and "\-", which is the ASCII hyphen-minus (U+002D) that's used for UNIX command options and most filenames. Hyphens, where appropriate, produce better typesetting, but incorrectly using them for command names and options can cause problems with searching and cut-and-paste. the struggle is real π€
POD does not draw this distinction. Before podlators v6.0.0, Pod::Man attempted to translate "-" in the input into either a hyphen or a hyphen-minus, depending on context. However, this distinction proved impossible to do correctly with heuristics. Pod::Man therefore translates all "-" characters in the input to "\-" in the output, ensuring that command names and options are correct at the cost of somewhat inferior typesetting and line breaking issues with long hyphenated phrases.
To use true hyphens in the Pod::Man output, declare an input character set of UTF-8 (or some other Unicode encoding) and use Unicode hyphens. Pod::Man and *roff should handle those correctly with the default output format and most modern *roff implementations. π§
Similarly, Pod::Man disables the default *roff behavior of turning "`" and "'" characters into matched quotes, and pairs of those characters into matched double quotes, because there's no good way to tell from the POD input whether this interpretation is desired or whether the intent is to use a literal grave accent or neutral apostrophe. If you want paired quotes in the output, use Unicode and its paired quote characters. simple as that β¨
π AUTHOR π
Written by Russ Allbery <rra@cpan.org>, based on the original pod2man by Tom Christiansen <tchrist@mox.perl.com>.
The modifications to work with Pod::Simple instead of Pod::Parser were contributed by Sean Burke <sburke@cpan.org>, but I've since hacked them beyond recognition and all bugs are mine. π
(relatable)
π COPYRIGHT AND LICENSE π
Copyright 1999-2020, 2022-2024 Russ Allbery <rra@cpan.org>
Substantial contributions by Sean Burke <sburke@cpan.org>.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. π
π¦ SEE ALSO π¦
Encode::Supported, Pod::Simple, perlpod(1), pod2man(1), nroff(1), troff(1), man(1), man(7)
Ossanna, Joseph F., and Brian W. Kernighan. "Troff User's Manual," Computing Science Technical Report No. 54, AT&T Bell Laboratories. This is the best documentation of standard nroff and troff. At the time of this writing, it's available at <http://www.troff.org/54.pdf>. go read the classic π
The manual page documenting the man macro set may be man(5) instead of man(7) on your system. depends on the vibes of your system tbh π€·ββοΈ
See perlpodstyle(1) for documentation on writing manual pages in POD if you've not done it before and aren't familiar with the conventions. we all start somewhere π«Ά
The current version of this module is always available from its web site at <https://www.eyrie.org/~eagle/software/podlators/>. It's also part of the Perl core distribution as of 5.6.0. iconic behavior honestly π
and that's a wrap bestie!! π this page comes from Perl v5.42.3, dated 2026-11-03, and it's Pod::Man(3pm) β go forth and format your manual pages, you absolute main character πβ¨π¦
π¦ 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