现在的位置: 首页 > 综合 > 正文

perl 文档查询方法总结[不断更新]

2014年03月25日 ⁄ 综合 ⁄ 共 1972字 ⁄ 字号 评论关闭

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.... 

抱歉!评论已关闭.