Command Paragraphs
All pod directives start with = followed
by an identifier. This may be followed by any amount of
arbitrary text that the directive can use however it pleases. The only
syntactic requirement is that the text must all be one paragraph.
Currently recognized directives (sometimes called pod
commands) are:
=encodingBy default, the Pod translators assume that your Pod source is either ASCII or Latin-1. You can change this by specifying the encoding with this command, probably to UTF-8:
=encoding uft8
=head1=head2The
=head1,=head2,… directives produce headings at the level specified. The rest of the text in the paragraph is treated as the heading description. These are similar to the.SHand.SSsection and subsection headers in man(7), or to<H1>…</H1>and<H2>…</H2>tags in HTML. In fact, that’s exactly what those translators convert these directives into for those formats.=cutThe
=cutdirective indicates the end of a stretch of pod. (There might be more pod later in the document, but if so it will be introduced with another pod directive.)=podThe
=poddirective does nothing beyond telling the compiler to lay off parsing code through the next=cut. It’s useful for adding another paragraph to the document if you’re mixing up code and pod a lot.=overNUMBER=itemSYMBOL=backThe
=overdirective starts a section specifically for the generation of a list using the=itemdirective. At the end of your list, use=backto end it. TheNUMBER, if provided, hints to the formatter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access