官术网_书友最值得收藏!

  • Perl 6 Deep Dive
  • Andrew Shitov
  • 170字
  • 2021-07-03 00:05:46

Creating Pod documentation

Pod is a sublanguage inside Perl 6 used to write documentation. It can be considered as an extended version of comments, which allows more functionality in expressing the content. Pod in Perl 6 is the evolution of the POD (Plain Old Documentation) in Perl 5. In Perl 6, the name is not an abbreviation and thus is not capitalized. In this section, we will examine the syntax of the Pod markup language.

Pod content is placed in the same source file as the Perl 6 program itself. A Pod section is a series of lines containing some textual information. The compiler is switching between parsing Pod and Perl 6 when it sees the beginning and ending marks of the Pod section. Pod syntax is designed to express the semantics of the documentation and to help organize it in a more structured way.

Let's see how you create a Pod block. There are a few types of Pod blocks, as well as a few ways of creating them.

主站蜘蛛池模板: 河源市| 庆安县| 万荣县| 济源市| 临武县| 刚察县| 麻江县| 册亨县| 崇仁县| 依兰县| 潞西市| 西安市| 吉首市| 甘南县| 五指山市| 广汉市| 大连市| 乃东县| 揭西县| 浙江省| 阿克陶县| 昆山市| 囊谦县| 大洼县| 漳州市| 南澳县| 垦利县| 共和县| 修武县| 腾冲县| 灵川县| 西乡县| 义乌市| 炉霍县| 阳泉市| 齐齐哈尔市| 游戏| 呼伦贝尔市| 铜川市| 务川| 沙坪坝区|