Pod::P...BaseTo(3perl)
π NAME π
Pod::Perldoc::BaseTo β bestie, it's the base class for the Pod::Perldoc formatters. The blueprint. The mother of all formatters. The template that the other formatter classes are literally built on top of. π
β¨ SYNOPSIS β¨
Okay so this is how you actually use it, no cap:
package Pod::Perldoc::ToMyFormat;
use parent qw( Pod::Perldoc::BaseTo );
...
Yup. You make your own package, you use parent qw( Pod::Perldoc::BaseTo ), and then you finish the rest yourself. The ... is doing a lot of heavy lifting there but that's the vibe. π
πΈ DESCRIPTION πΈ
So, this package is meant to be the base of all the Pod::Perldoc formatters β like Pod::Perldoc::ToText, Pod::Perldoc::ToMan, and the rest of the crew. It's giving "I raised all of y'all." π«Ά
It hands you default implementations for these methods, already done, already slaying:
is_pageablewrite_with_binmodeoutput_extension_perldoc_elem
But here's the part where you have to show up and do your part, bestie. The concrete formatter β that's your formatter β must implement these:
newparse_from_file
Like. These ones are not optional. The base class is giving you defaults on the easy stuff and looking at you expectantly for the real work. π§
π¦ SEE ALSO π¦
perldocβ go read it, it's right there
π COPYRIGHT AND DISCLAIMERS π
Copyright (c) 2002-2007 Sean M. Burke. π«‘
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. So like. It's free, it's generous, but it's not promising you anything. π
π AUTHOR π
Current maintainer: Mark Allen <mallen@cpan.org>
Past contributions from: brian d foy <bdfoy@cpan.org>, Adriano R. Ferreira <ferreira@cpan.org>, Sean M. Burke <sburke@cpan.org>
Look at that contributor list. Legends only. π
okay that's the whole page bestie, mwah π
Signing off from perl v5.44.0, dated 2026-10-17 β this was Pod::Perldoc::BaseTo(3perl), and yes she ate. πβ¨
π¦ 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