POD::TEXT::OVERSTRIKE(3perl)
π NAME π
Pod::Text::Overstrike β bestie, it turns your POD data into formatted overstrike text. slay. π
(this page lives in the Perl Programmers Reference Guide, just so you know where you are π )
β¨ SYNOPSIS β¨
use Pod::Text::Overstrike;
my $parser = Pod::Text::Overstrike->new (sentence => 0, width => 78);
# Read POD from STDIN and write to STDOUT.
$parser->parse_from_filehandle;
# Read POD from file.pod and write to file.txt.
$parser->parse_from_file ('file.pod', 'file.txt');
like, that's literally it, go off π«
π¦ DESCRIPTION π¦
so Pod::Text::Overstrike is a simple subclass of Pod::Text, and what it does is highlight your output text using overstrike sequences, in a manner similar to nroff. iconic honestly.
here's the tea on how it works:
- characters in bold text get overstruck β that's (character, backspace, character) π«Ά
- characters in underlined text get converted into overstruck underscores β that's (underscore, backspace, character) π
this format was originally designed for hard-copy terminals and/or line printers, but the gag is it's still readable on soft-copy (CRT) terminals. versatile king π
overstruck text is best viewed by page-at-a-time programs that take advantage of the terminal's stand-out and underline capabilities β like, for example, the less program on Unix. use less, it knows what it's doing πΈ
and apart from the whole overstrike thing, it in all ways functions like Pod::Text. so if you want the details and the full list of available options, go read Pod::Text. periodt π
π BUGS π
ngl there's a quirk. currently, the outermost formatting instruction wins. so for example, underlined text that lives inside a region of bold text just displays as simply bold. the inner formatting gets absolutely ignored bestie π
there may be some better approach possible. someone please fix it, I'm begging π
π COMPATIBILITY π
the lore drop, chronological order:
Pod::Text::Overstrike1.01 (based onPod::Parser) was the first version of this module included with Perl, in Perl 5.6.1.- the current API, based on
Pod::Simple, was added inPod::Text::Overstrike2.00, included in Perl 5.9.3. - several problems with wrapping and line length were fixed as recently as
Pod::Text::Overstrike6.0.0. π
this module inherits its API and most behaviour from Pod::Text, so the details in "COMPATIBILITY" in Pod::Text also apply. read that too, bestie, it's required reading π
Pod::Text and Pod::Text::Overstrike have had the same module version since 4.00, included in Perl 5.23.7. (they unfortunately diverge in confusing ways prior to that. lowkey messy π)
π¨ CAVEATS π¨
line wrapping is done only at ASCII spaces and tabs, rather than using a correct Unicode-aware line wrapping algorithm. so like, don't come for it about your fancy Unicode line breaks, it's doing its best π
π AUTHOR π
originally written by Joe Smith <Joe.Smith@inwap.com>, using the framework created by Russ Allbery <rra@cpan.org>. subsequently updated by Russ Allbery. two legends fr fr π«Ά
π COPYRIGHT AND LICENSE π
Copyright 2000 Joe Smith <Joe.Smith@inwap.com>
Copyright 2001, 2004, 2008, 2014, 2018-2019, 2022, 2024 Russ Allbery <rra@cpan.org>
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. π
π SEE ALSO π
Pod::TextPod::Simple
the current version of this module is always available from its web site at <https://www.eyrie.org/~eagle/software/podlators/>. it is also part of the Perl core distribution as of 5.6.0. π
and that's the whole page bestie, you ate it all up π β¨
this was perl v5.44.0, dated 2026-10-17 β go forth and overstrike, mwah ππ¦
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND 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