⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perlpodspec.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 5 页
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "PERLPODSPEC 1".TH PERLPODSPEC 1 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"perlpodspec \- Plain Old Documentation: format specification and notes.SH "DESCRIPTION".IX Header "DESCRIPTION"This document is detailed notes on the Pod markup language.  Mostpeople will only have to read perlpod to know how to writein Pod, but this document may answer some incidental questions to dowith parsing and rendering Pod..PPIn this document, \*(L"must\*(R" / \*(L"must not\*(R", \*(L"should\*(R" /\&\*(L"should not\*(R", and \*(L"may\*(R" have their conventional (cf. \s-1RFC\s0 2119)meanings: \*(L"X must do Y\*(R" means that if X doesn't do Y, it's againstthis specification, and should really be fixed.  \*(L"X should do Y\*(R"means that it's recommended, but X may fail to do Y, if there's agood reason.  \*(L"X may do Y\*(R" is merely a note that X can do Y atwill (although it is up to the reader to detect any connotation of"and I think it would be \fInice\fR if X did Y\*(L" versus \*(R"it wouldn'treally \fIbother\fR me if X did Y")..PPNotably, when I say \*(L"the parser should do Y\*(R", theparser may fail to do Y, if the calling application explicitlyrequests that the parser \fInot\fR do Y.  I often phrase this as\&\*(L"the parser should, by default, do Y.\*(R"  This doesn't \fIrequire\fRthe parser to provide an option for turning off whateverfeature Y is (like expanding tabs in verbatim paragraphs), althoughit implicates that such an option \fImay\fR be provided..SH "Pod Definitions".IX Header "Pod Definitions"Pod is embedded in files, typically Perl source files \*(-- although youcan write a file that's nothing but Pod..PPA \fBline\fR in a file consists of zero or more non-newline characters,terminated by either a newline or the end of the file..PPA \fBnewline sequence\fR is usually a platform-dependent concept, butPod parsers should understand it to mean any of \s-1CR\s0 (\s-1ASCII\s0 13), \s-1LF\s0(\s-1ASCII\s0 10), or a \s-1CRLF\s0 (\s-1ASCII\s0 13 followed immediately by \s-1ASCII\s0 10), inaddition to any other system-specific meaning.  The first \s-1CR/CRLF/LF\s0sequence in the file may be used as the basis for identifying thenewline sequence for parsing the rest of the file..PPA \fBblank line\fR is a line consisting entirely of zero or more spaces(\s-1ASCII\s0 32) or tabs (\s-1ASCII\s0 9), and terminated by a newline or end-of-file.A \fBnon-blank line\fR is a line containing one or more characters otherthan space or tab (and terminated by a newline or end-of-file)..PP(\fINote:\fR Many older Pod parsers did not accept a line consisting ofspaces/tabs and then a newline as a blank line \*(-- the only lines theyconsidered blank were lines consisting of \fIno characters at all\fR,terminated by a newline.).PP\&\fBWhitespace\fR is used in this document as a blanket term for spaces,tabs, and newline sequences.  (By itself, this term usually refersto literal whitespace.  That is, sequences of whitespace charactersin Pod source, as opposed to \*(L"E<32>\*(R", which is a formattingcode that \fIdenotes\fR a whitespace character.).PPA \fBPod parser\fR is a module meant for parsing Pod (regardless ofwhether this involves calling callbacks or building a parse tree ordirectly formatting it).  A \fBPod formatter\fR (or \fBPod translator\fR)is a module or program that converts Pod to some other format (\s-1HTML\s0,plaintext, TeX, PostScript, \s-1RTF\s0).  A \fBPod processor\fR might be aformatter or translator, or might be a program that does somethingelse with the Pod (like counting words, scanning for index points,etc.)..PPPod content is contained in \fBPod blocks\fR.  A Pod block starts with aline that matches <m/\eA=[a\-zA\-Z]/>, and continues up to the next linethat matches \f(CW\*(C`m/\eA=cut/\*(C'\fR \*(-- or up to the end of the file, if there isno \f(CW\*(C`m/\eA=cut/\*(C'\fR line..PPWithin a Pod block, there are \fBPod paragraphs\fR.  A Pod paragraphconsists of non-blank lines of text, separated by one or more blanklines..PPFor purposes of Pod processing, there are four types of paragraphs ina Pod block:.IP "\(bu" 4A command paragraph (also called a \*(L"directive\*(R").  The first line ofthis paragraph must match \f(CW\*(C`m/\eA=[a\-zA\-Z]/\*(C'\fR.  Command paragraphs aretypically one line, as in:.Sp.Vb 1\&  =head1 NOTES\&\&  =item *.Ve.SpBut they may span several (non-blank) lines:.Sp.Vb 3\&  =for comment\&  Hm, I wonder what it would look like if\&  you tried to write a BNF for Pod from this.\&\&  =head3 Dr. Strangelove, or: How I Learned to\&  Stop Worrying and Love the Bomb.Ve.Sp\&\fISome\fR command paragraphs allow formatting codes in their content(i.e., after the part that matches \f(CW\*(C`m/\eA=[a\-zA\-Z]\eS*\es*/\*(C'\fR), as in:.Sp.Vb 1\&  =head1 Did You Remember to C<use strict;>?.Ve.SpIn other words, the Pod processing handler for \*(L"head1\*(R" will apply thesame processing to \*(L"Did You Remember to C<use strict;>?\*(R" that itwould to an ordinary paragraph \*(-- i.e., formatting codes (like\&\*(L"C<...>\*(R") are parsed and presumably formatted appropriately, andwhitespace in the form of literal spaces and/or tabs is notsignificant..IP "\(bu" 4A \fBverbatim paragraph\fR.  The first line of this paragraph must be aliteral space or tab, and this paragraph must not be inside a "=begin\&\fIidentifier\fR\*(L", ... \*(R"=end \fIidentifier\fR\*(L" sequence unless\&\*(R"\fIidentifier\fR\*(L" begins with a colon (\*(R":").  That is, if a paragraphstarts with a literal space or tab, but \fIis\fR inside a"=begin \fIidentifier\fR\*(L", ... \*(R"=end \fIidentifier\fR\*(L" region, then it'sa data paragraph, unless \*(R"\fIidentifier\fR" begins with a colon..SpWhitespace \fIis\fR significant in verbatim paragraphs (although, inprocessing, tabs are probably expanded)..IP "\(bu" 4An \fBordinary paragraph\fR.  A paragraph is an ordinary paragraphif its first line matches neither \f(CW\*(C`m/\eA=[a\-zA\-Z]/\*(C'\fR nor\&\f(CW\*(C`m/\eA[ \et]/\*(C'\fR, \fIand\fR if it's not inside a "=begin \fIidentifier\fR\*(L",\&... \*(R"=end \fIidentifier\fR\*(L" sequence unless \*(R"\fIidentifier\fR\*(L" begins witha colon (\*(R":")..IP "\(bu" 4A \fBdata paragraph\fR.  This is a paragraph that \fIis\fR inside a "=begin\&\fIidentifier\fR\*(L" ... \*(R"=end \fIidentifier\fR\*(L" sequence where\&\*(R"\fIidentifier\fR" does \fInot\fR begin with a literal colon (\*(L":\*(R").  Insome sense, a data paragraph is not part of Pod at all (i.e.,effectively it's \*(L"out-of-band\*(R"), since it's not subject to most kindsof Pod parsing; but it is specified here, since Podparsers need to be able to call an event for it, or store it in someform in a parse tree, or at least just parse \fIaround\fR it..PPFor example: consider the following paragraphs:.PP.Vb 1\&  # <\- that\*(Aqs the 0th column\&\&  =head1 Foo\&\&  Stuff\&\&    $foo\->bar\&\&  =cut.Ve.PPHere, \*(L"=head1 Foo\*(R" and \*(L"=cut\*(R" are command paragraphs because the firstline of each matches \f(CW\*(C`m/\eA=[a\-zA\-Z]/\*(C'\fR.  "\fI[space][space]\fR\f(CW$foo\fR\->bar\*(L"is a verbatim paragraph, because its first line starts with a literalwhitespace character (and there's no \*(R"=begin\*(L"...\*(R"=end" region around)..PPThe "=begin \fIidentifier\fR\*(L" ... \*(R"=end \fIidentifier\fR" commands stop

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -