1. 查模块,用ppm吧
2.查函数
perldoc.bat -f [function]
3. 查操作符及优先级
perldoc perlop
4. ..郁闷,记不起来了,perldoc自己看去吧
C:\>perldoc -h
perldoc [options] PageName|ModuleName|ProgramName...
perldoc [options] -f BuiltinFunction
perldoc [options] -q FAQRegex
Options:
-h Display this help message
-V report version
-r Recursive search (slow)
-i Ignore case
-t Display pod using pod2text instead of pod2man and nroff
(-t is the default on win32 unless -n is specified)
-u Display unformatted pod text
-m Display module's file in its entirety
-n Specify replacement for nroff
-l Display the module's file name
-F Arguments are file names, not modules
-v Verbosely describe what's going on
-T Send output to STDOUT without any pager
-d output_filename_to_send_to
-o output_format_name
-M FormatterModuleNameToUse
-w formatter_option:option_value
-X use index if present (looks for pod.idx at C:\Program Files\perl\lib)
-q Search the text of questions (not answers) in perlfaq[1-9]
PageName|ModuleName...
is the name of a piece of documentation that you want to look at. You
may either give a descriptive name of the page (as in the case of
`perlfunc') the name of a module, either like `Term::Info' or like
`Term/Info', or the name of a program, like `perldoc'.
BuiltinFunction
is the name of a perl function. Will extract documentation from
`perlfunc'.
FAQRegex
is a regex. Will search perlfaq[1-9] for and extract any
questions that match.
Any switches in the PERLDOC environment variable will be used before the
command line arguments. The optional pod index file contains a list of
filenames, one per line.
[Perldoc v3.13]
5.如何写perl程序,加注释等等
C:\>perldoc perlpod
NAME
perlpod - the Plain Old Documentation format
DESCRIPTION
Pod is a simple-to-use markup language used for writing documentation
for Perl, Perl programs, and Perl modules.
Translators are available for converting Pod to various formats like
plain text, HTML, man pages, and more.
Pod markup consists of three basic kinds of paragraphs: ordinary,
verbatim, and command.
Ordinary Paragraph
6....
博客主要介绍了Perl的相关使用方法,包括使用ppm查模块,通过perldoc.bat -f查函数、perldoc perlop查操作符及优先级等。还给出了perldoc的详细选项说明,以及如何写Perl程序、加注释等内容,如使用perldoc perlpod查看相关文档。
846

被折叠的 条评论
为什么被折叠?



