Method for directly generating documents from Perl code

Source: Internet
Author: User
Perl supports generating documents from text blocks in your pod format. This pod text block can be embedded in CodeOr a separate file.
With the pod, It is very convenient to write a script without having to write additional documents.
We recommend that you read the perldoc perlpod content carefully. This document describes the syntax of the pod Markup Language in detail.
$ Perldoc perlpod

Try to ensure a good writing habit, such:
= Pod
= Head1 name
Water: Test-the great new water: test!
= Head1 version
Version 0.01:
= Cut

Both start and end should be empty. After you write your code file in the above form, you only need to use commands such as pod2html and pod2man to convert it into a document.
For example, if you save the secret code as the test.txt file, you can use the following command to convert it into an HTML document:
$ Pod2html-infile test.txt-OUTFILE text.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.