Pod::Perldoc::BaseTo â Base for Pod::Perldoc formatters
| Use Case | Command | Description |
|---|---|---|
| Create a new formatter | Pod::Perldoc::ToMyFormat->new() |
đ§ Instantiate a concrete formatter (must implement new) |
| Parse POD from a file | $formatter->parse_from_file($file) |
đ Parse POD input and produce output (must implement) |
| Check if output is pageable | $formatter->is_pageable() |
đ Returns true if output can be paged (e.g., man pages) |
| Write with binmode | $formatter->write_with_binmode() |
đž Controls binary mode for output filehandle |
| Get output file extension | $formatter->output_extension() |
đ Returns the file extension for the output format (e.g., .txt) |
| Access internal perldoc elements | $formatter->_perldoc_elem($key) |
đ Retrieve internal configuration elements from perldoc |
package Pod::Perldoc::ToMyFormat;
use parent qw( Pod::Perldoc::BaseTo );
...
This package is meant as a base of Pod::Perldoc formatters, like Pod::Perldoc::ToText, Pod::Perldoc::ToMan, etc.
It provides default implementations for the methods:
is_pageable â determines if output can be pagedwrite_with_binmode â controls binary mode on outputoutput_extension â returns the file extension for the output format_perldoc_elem â access to internal perldoc elementsThe concrete formatter must implement:
new â constructorparse_from_file â parse POD input from a fileCopyright (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.
Current maintainer: Mark Allen "<mallen AT cpan.org>"
Past contributions from: brian d foy "<bdfoy AT cpan.org>" Adriano R. Ferreira "<ferreira AT cpan.org>", Sean M. Burke "<sburke AT cpan.org>"
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-21 04:37 @216.73.216.45
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)