perldoc > Pod::Simple

```html

๐Ÿ“„ NAME

Pod::Simple โ€” framework for parsing Pod

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ“– Parse and output to STDOUT perl -MPod::Simple::Text -e "Pod::Simple::Text->filter('file.pod')" Quick one-liner for viewing Pod
๐Ÿ“ Parse to a file handle $parser->output_fh(*OUT); $parser->parse_file('file.pod') Parse Pod file, write output to file handle
๐Ÿงต Parse to a string $parser->output_string(\$string); $parser->parse_file('file.pod') Capture Pod output in a string variable
๐Ÿ“ Parse from a string $parser->parse_string_document($pod_content) Parse Pod from in-memory string
๐Ÿงฉ Incremental parsing $parser->parse_lines(@lines, undef) Parse Pod line by line (multiple calls allowed)
โšก Filter shortcut SomeClass->filter($filename) Create parser, set STDOUT, parse file in one step

๐Ÿ“‹ SYNOPSIS

TODO

๐Ÿ“– DESCRIPTION

Pod::Simple is a Perl library for parsing text in the Pod ("plain old documentation") markup language that is typically used for writing documentation for Perl and for Perl modules. The Pod format is explained in perlpod; the most common formatter is called "perldoc".

Be sure to read ENCODING if your Pod contains non-ASCII characters.

Pod formatters can use Pod::Simple to parse Pod documents and render them into plain text, HTML, or any number of other formats. Typically, such formatters will be subclasses of Pod::Simple, and so they will inherit its methods, like parse_file. But note that Pod::Simple doesn't understand and properly parse Perl itself, so if you have a file which contains a Perl program that has a multi-line quoted string which has lines that look like pod, Pod::Simple will treat them as pod. This can be avoided if the file makes these into indented here documents instead.

If you're reading this document just because you have a Pod-processing subclass that you want to use, this document (plus the documentation for the subclass) is probably all you need to read.

If you're reading this document because you want to write a formatter subclass, continue reading it and then read Pod::Simple::Subclassing, and then possibly even read perlpodspec (some of which is for parser-writers, but much of which is notes to formatter-writers).

โš™๏ธ MAIN METHODS

๐Ÿ”ง SECONDARY METHODS

Some of these methods might be of interest to general users, as well as of interest to formatter-writers.

Note that the general pattern here is that the accessor-methods read the attribute's value with $value = $parser->attribute and set the attribute's value with $parser->attribute(newvalue). For each accessor, I typically only mention one syntax or another, based on which I think you are actually most likely to use.

๐Ÿ”ฉ TERTIARY METHODS

๐Ÿ”ค ENCODING

The Pod::Simple parser expects to read octets. The parser will decode the octets into Perl's internal character string representation using the value of the =encoding declaration in the POD source.

If the POD source does not include an =encoding declaration, the parser will attempt to guess the encoding (selecting one of UTF-8 or CP 1252) by examining the first non-ASCII bytes and applying the heuristic described in perlpodspec. (If the POD source contains only ASCII bytes, the encoding is assumed to be ASCII.)

If you set the parse_characters option to a true value the parser will expect characters rather than octets; will ignore any =encoding; and will make no attempt to decode the input.

๐Ÿ“š SEE ALSO

๐Ÿ†˜ SUPPORT

Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail list. Send an empty email to pod-people-subscribe@perl.org to subscribe.

This module is managed in an open GitHub repository, <https://github.com/perl-pod/pod-simple/>. Feel free to fork and contribute, or to clone <git://github.com/perl-pod/pod-simple.git> and send patches!

Please use <https://github.com/perl-pod/pod-simple/issues/new> to file a bug report.

ยฉ๏ธ COPYRIGHT AND DISCLAIMERS

Copyright (c) 2002 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.

๐Ÿ‘ค AUTHOR

Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired.

Pod::Simple is maintained by:

Documentation has been contributed by:

```
Pod::Simple
๐Ÿ“„ NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“– DESCRIPTION โš™๏ธ MAIN METHODS ๐Ÿ”ง SECONDARY METHODS ๐Ÿ”ฉ TERTIARY METHODS ๐Ÿ”ค ENCODING ๐Ÿ“š SEE ALSO ๐Ÿ†˜ SUPPORT ยฉ๏ธ COPYRIGHT AND DISCLAIMERS ๐Ÿ‘ค AUTHOR

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-07 18:47 @2600:1f28:365:80b0:18ab:df6:7e48:ac07
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^