- Perl 6 Deep Dive
- Andrew Shitov
- 105字
- 2021-07-03 00:05:44
The --doc command
The --doc (notice the double hyphen) command-line extracts the documentation from the program and prints it. Here, the so-called Pod documentation is meant. We will cover the Pod syntax in Chapter 2, Writing Code.
Let's see the small program that includes the documentation inside itself:
=begin pod =head1 Hello, World program =item This program prints "Hello, World!" =end pod say "Hello, World!";
Run it with the --doc command-line option as follows:
$ perl6 --doc pod.pl
It will print only parts of the documentation. The code itself will not be executed:
Hello, World program * This program prints "Hello, World!"
推薦閱讀
- VMware View Security Essentials
- JavaScript+DHTML語法與范例詳解詞典
- 工程軟件開發技術基礎
- 程序員面試筆試寶典
- Unity 2020 Mobile Game Development
- VSTO開發入門教程
- Learn Scala Programming
- Processing互動編程藝術
- C/C++數據結構與算法速學速用大辭典
- TMS320LF240x芯片原理、設計及應用
- Learning Nessus for Penetration Testing
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- OpenCV Android開發實戰
- 奔跑吧 Linux內核
- Python Social Media Analytics