Perl POD Document
POD (Plain Old Documentation) documents can be embedded in modules or scripts in Perl.
POD is a simple and easy to use markup language (markup language).
POD document usage rules:
POD documents start with =head1, =cut ends, =head1 before and =cut Add a blank line afterwards.
Perl ignores documents in the POD. An example is as follows:
Execute the above application, the yield is:
Hello, World Hello, welookups
We likewise can "remark" all the substance after the line with "__END__" or "__DATA__":
Execute the above programming, the yield is:
Hello, World =head1 Hello, World Instances This is a Perl A basic model. print "Hello, welookupsn";
The following model does now not think about the POD file:
Execute the above program, the yield is:
What is POD?
Pod (Plain Old Documentation), a simple and easy-to-use markup language (markup language), is often used for document writing in perl programs and modules.
Pod's converters can convert Pods into many formats, such as text, html, man, and more.
The Pod Markup Language consists of three basic basic types: Normal, Original, and Command.
Normal paragraphs: You can use formatting code in plain paragraphs, such as bold, italic, or code style, underline, and more.
Original paragraph: The original paragraph, used for code blocks or other parts that do not require converter processing, and does not require paragraph rearrangement.
Command paragraphs: Command paragraphs apply to the entire document, usually for title settings or list tags.
All command paragraphs (he has only one line length) start with "=" and then an identifier. Subsequent text will be affected by this command. Commands that are now widely used include
=pod (Starting the record ) =head1 Title text =head2 Title literary content =head3 headline literary content =head4 Title text =over indented spaces =item prefix =returned (cease list) =start Document format =cease End record format =for Formatted literary content =encoding coding type =cut (stop of document)
In perl, pod2html **.Pod >**.Html might be utilized to produce case records in html design.