Pod::Text::Color(3pm)
π Pod::Text::Color(3pm) β the podlators glow-up module, bestie β¨
okay so real talk, this is the manual page for Pod::Text::Color, part of the Perl Programmers Reference Guide β and it's literally the module that makes your POD output cute by throwing ANSI color at it. π Let's get into it.
πΈ NAME πΈ
Pod::Text::Color β converting POD data into formatted color ASCII text, no cap π
π¦ SYNOPSIS π¦
Like, here's the whole vibe in code:
use Pod::Text::Color;
my $parser = Pod::Text::Color->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');
that's it, that's the whole thing, slay π
β¨ DESCRIPTION β¨
So Pod::Text::Color is a simple subclass of Pod::Text β like, a lil baby version that inherited the good genes β and what it does is highlight output text using ANSI color escape sequences. ποΈ
Apart from the color (which is, admittedly, the main character here), it functions in all ways like Pod::Text. So if you want the details and the available options, go read Pod::Text, iykyk. π
important!!Term::ANSIColoris what it uses to get colors, soTerm::ANSIColormust be installed to use this module. no install, no rainbow. π
π COMPATIBILITY π
ancient lore time, bestie πΊ:
Pod::Text::Color0.05 (based onPod::Parser) was the first version of this module included with Perl, in Perl 5.6.0.- The current API based on
Pod::Simplewas added inPod::Text::Color2.00. ThenPod::Text::Color2.01 was included in Perl 5.9.3 β the first version of Perl to incorporate those changes. - Several problems with wrapping and line length were fixed as recently as
Pod::Text::Color6.0.0. (yes, that recently. we don't talk about it. π) - This module inherits its API and most behavior from
Pod::Text, so the details in"COMPATIBILITY" in Pod::Textalso apply.Pod::TextandPod::Text::Colorhave had the same module version since 4.00, included in Perl 5.23.7. (They unfortunately diverge in confusing ways prior to that. messy era. π)
π CAVEATS π
Line wrapping is done only at ASCII spaces and tabs, rather than using a correct Unicode-aware line wrapping algorithm. so like. it's giving "close enough." π«
π«Ά AUTHOR π«Ά
Russ Allbery <rra@cpan.org>. (ty king π)
π COPYRIGHT AND LICENSE π
Copyright 1999, 2001, 2004, 2006, 2008, 2009, 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. π¦
okay that's the whole page, bestie!! π this was perl v5.42.3, dated 2026-11-03, and it's the Pod::Text::Color(3pm) page β go forth and colorize responsibly β¨ππ
π¦ 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