encyclopegia.org

Plain Old Documentation

Plain Old Documentation (pod) is a lightweight markup language used to document the Perl programming language, modules, and programs.[src]

Plain Old Documentation (pod) is a lightweight markup language used to document the Perl programming language, modules, and programs.[src] ==Design== Pod is designed to be a simple, clean language with just enough syntax to be useful.[src] It purposely omits mechanisms for fonts, images, colors, or tables.[src] Some of its goals are: Easy to parse Easy to convert to other formats, such as XML, TeX, or Markdown Easy to incorporate sample code Easy to read without a pod formatter (i.e., in its source-code form) Easy to write An extended version of pod that supports tables and footnotes called PseudoPOD has been used by O'Reilly & Associates to produce several Perl books, most notably Programming Perl by Larry Wall, Tom Christiansen, and Jon Orwant.[src] Pod makes it easy to write manual pages, which are well suited to user-oriented documents.[src] In contrast, other documentation systems, such as Python's Docstring or Java's Javadoc, though they can be used for user documentation, are designed to facilitate generating developer-oriented documentation about the source code for a software project.[src] ==Use== Pod is the language used for most documentation in the Perl world.[src] This includes Perl itself, nearly all publicly released modules, many scripts, most design documents, many articles on Perl.com and other Perl-related web sites, and the Parrot virtual machine.[src] Pod is rarely read in the raw, although it is designed to be readable without the assistance of a formatting tool.[src] Instead, it is read with the perldoc tool, or converted into Unix man pages or Web-standard HTML pages.[src] It is also possible to use pod in other contexts than Perl.[src] For example, to add simple documentation to bash scripts, which can then be easily converted to man pages.[src] Such uses rely on language-specific hacks to hide the pod part(s), such as (in bash) prefixing the POD section with the line : which works by calling bash's no-op : command, with the whole block of Pod as a here document as input to it.[src] Pure pod files usually have the extension .pod , but pod is mostly used directly in Perl code, which usually use the .pl and .pm extensions.[src] (The Perl interpreter's parser is designed to ignore pod in Perl code.) In source code files, the documentation is generally placed after the __END__ marker (which also helps syntax highlighting in some editors to display it as comments).[src] Pod can easily be converted to other formats, for example some of the various Wiki formats like: WikiWikiWeb, Kwiki, TWiki, UseModWiki, TiddlyWiki, Textile, MediaWiki, MoinMoin or Confluence using Pod::Simple::Wiki.[src] ==Example== This document is syntactically correct pod, which attempts to follow the major conventions on section naming as well.[src] ==Formatting details== Pod files are written in an ASCII-compatible encoding, such as Latin-1 or UTF-8.[src] A pod parser always assumes that the file it is parsing doesn't start with pod; it ignores all lines until it sees a pod directive.[src] This must be at a line start and all begin with an equal sign.[src] The pod parser then assumes that all following lines are pod, until it encounters a line consisting of the "=cut" directive.[src] Any content following that is ignored until the parser encounters another pod directive.[src] Thus, pod can be intermixed with executable source code if the language's parser knows how to recognize and ignore pod.[src] Pod content is divided into paragraphs by empty lines.[src] Paragraphs that begin with whitespace characters—tabs or spaces—are considered to be "verbatim paragraphs", and are left unformatted; these are used for sample code, ASCII art, etc.[src] Paragraphs that begin with an equal sign are "command paragraphs"; the sequence of alphanumeric characters immediately following the equal sign is treated as a pod directive, and the rest of the paragraph is formatted according to that directive.[src] Some directives also affect the following paragraphs.[src] If a paragraph starts with something besides an equal sign or whitespace, it's considered an "ordinary paragraph".[src] Both ordinary paragraphs and the contents of command paragraphs are parsed for formatting codes.[src] Formatting in pod is very plain; it's mainly limited to bold, italic, underlined, monospaced, and a few other formats.[src] A code exists to link between pod documents or to another section within the same document.[src] Formatting codes consist of either: One uppercase letter, followed by a less-than sign ( ), e.g., B , or One uppercase letter, two or more less-than signs ( B > .[src] This form is often used for code snippets containing a greater-than sign, which will otherwise end the formatting code.[src] Commands in pod include four levels of headings, bulleted and numbered lists, and commands to mark sections as being in another language.[src] The last feature allows special formatting to be given to parsers supporting it.[src] ==See also== Comparison of documentation generators ==References== Wall, Larry; Christiansen, Tom; & Orwant, Jon (2000).[src] Programming Perl (3rd ed.).[src] Sebastopol: O'Reilly & Associates.[src] .[src] Chapter 15, "Working with Pod", in foy, brian d (2007).[src] Mastering Perl.[src] Sebastopol: O'Reilly Media.[src] .[src] Section 5.2, "Embedding Documentation in Shell Scripts", in Albing, Carl; Vossen, JP; & Cameron Newham.[src] (2007).[src] bash Cookbook: Solutions and Examples for bash Users; O'Reilly & Associates.[src] .[src] ==External links== perlpod (documentation on pod for people writing documents in it) perlpodspec (documentation on pod for people writing parsers for it) The Perl manpages in raw pod format [ftp://ftp.ora.com/pub/labs/pseudopod.html (PseudoPOD)] The directory contains many modules with embedded pod formatting The Getopt::Euclid module parses input to a Perl script automatically based on pod tags The Pod::Simple::Wiki converts pod into various Wiki formats The Pod::Markdown converts pod into Markdown[src]

49 sentences · 49 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Plain Old Documentation." encyclopegia.org, 2026, https://encyclopegia.org/wiki/plain-old-documentation. Accessed 29 November 2026.

Chicago

"Plain Old Documentation." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/plain-old-documentation.

APA

encyclopegia.org. (2026). Plain Old Documentation. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/plain-old-documentation

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

GNU Free Documentation License

stub · references available

Chengdu Plain

stub · references available

Old Dundas Road Falls

stub · references available

Old English

stub · references available

Siege of Savage's Old Fields

stub · references available

Old Prussians

stub · references available

Old Jewish Cemetery

stub · references available

North China Plain

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1339630403 · 0.5 · snapshot enwiki-001339630403

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.