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

📄 perlpodspec.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 5 页
字号:
\&        "Newlines",                     # section\&        \*(Aqpod\*(Aq,                          # what sort of link\&        "Perlport\*(Aqs section on NL\*(Aqs|perlport/Newlines" # orig. content\&\&  L<perlport/Newlines>\&    =>  undef,                          # link text\&        \*(Aq"Newlines" in perlport\*(Aq,       # possibly inferred link text\&        "perlport",                     # name\&        "Newlines",                     # section\&        \*(Aqpod\*(Aq,                          # what sort of link\&        "perlport/Newlines"             # original content\&\&  L<crontab(5)/"DESCRIPTION">\&    =>  undef,                          # link text\&        \*(Aq"DESCRIPTION" in crontab(5)\*(Aq,  # possibly inferred link text\&        "crontab(5)",                   # name\&        "DESCRIPTION",                  # section\&        \*(Aqman\*(Aq,                          # what sort of link\&        \*(Aqcrontab(5)/"DESCRIPTION"\*(Aq      # original content\&\&  L</Object Attributes>\&    =>  undef,                          # link text\&        \*(Aq"Object Attributes"\*(Aq,          # possibly inferred link text\&        undef,                          # name\&        "Object Attributes",            # section\&        \*(Aqpod\*(Aq,                          # what sort of link\&        "/Object Attributes"            # original content\&\&  L<http://www.perl.org/>\&    =>  undef,                          # link text\&        "http://www.perl.org/",         # possibly inferred link text\&        "http://www.perl.org/",         # name\&        undef,                          # section\&        \*(Aqurl\*(Aq,                          # what sort of link\&        "http://www.perl.org/"          # original content.Ve.SpNote that you can distinguish URL-links from anything else by thefact that they match \f(CW\*(C`m/\eA\ew+:[^:\es]\eS*\ez/\*(C'\fR.  So\&\f(CW\*(C`L<http://www.perl.com>\*(C'\fR is a \s-1URL\s0, but\&\f(CW\*(C`L<HTTP::Response>\*(C'\fR isn't..RE.IP "\(bu" 4In case of L<...> codes with no \*(L"text|\*(R" part in them,older formatters have exhibited great variation in actually displayingthe link or cross reference.  For example, L<\fIcrontab\fR\|(5)> would renderas "the \f(CWcrontab(5)\fR manpage\*(L", or \*(R"in the \f(CWcrontab(5)\fR manpage\*(L"or just \*(R"\f(CWcrontab(5)\fR"..SpPod processors must now treat \*(L"text|\*(R"\-less links as follows:.Sp.Vb 3\&  L<name>         =>  L<name|name>\&  L</section>     =>  L<"section"|/section>\&  L<name/section> =>  L<"section" in name|name/section>.Ve.IP "\(bu" 4Note that section names might contain markup.  I.e., if a sectionstarts with:.Sp.Vb 1\&  =head2 About the C<\-M> Operator.Ve.Spor with:.Sp.Vb 1\&  =item About the C<\-M> Operator.Ve.Spthen a link to it would look like this:.Sp.Vb 1\&  L<somedoc/About the C<\-M> Operator>.Ve.SpFormatters may choose to ignore the markup for purposes of resolvingthe link and use only the renderable characters in the section name,as in:.Sp.Vb 2\&  <h1><a name="About_the_\-M_Operator">About the <code>\-M</code>\&  Operator</h1>\&\&  ...\&\&  <a href="somedoc#About_the_\-M_Operator">About the <code>\-M</code>\&  Operator" in somedoc</a>.Ve.IP "\(bu" 4Previous versions of perlpod distinguished \f(CW\*(C`L<name/"section">\*(C'\fRlinks from \f(CW\*(C`L<name/item>\*(C'\fR links (and their targets).  Thesehave been merged syntactically and semantically in the currentspecification, and \fIsection\fR can refer either to a "=head\fIn\fR HeadingContent\*(L" command or to a \*(R"=item Item Content" command.  Thisspecification does not specify what behavior should be in the caseof a given document having several things all seeming to produce thesame \fIsection\fR identifier (e.g., in \s-1HTML\s0, several things all producingthe same \fIanchorname\fR in <a name="\fIanchorname\fR">...</a>elements).  Where Pod processors can control this behavior, they shoulduse the first such anchor.  That is, \f(CW\*(C`L<Foo/Bar>\*(C'\fR refers to the\&\fIfirst\fR \*(L"Bar\*(R" section in Foo..SpBut for some processors/formats this cannot be easily controlled; aswith the \s-1HTML\s0 example, the behavior of multiple ambiguous<a name="\fIanchorname\fR">...</a> is most easily just left up tobrowsers to decide..IP "\(bu" 4Authors wanting to link to a particular (absolute) \s-1URL\s0, must do soonly with \*(L"L<scheme:...>\*(R" codes (likeL<http://www.perl.org>), and must not attempt \*(L"L<Some SiteName|scheme:...>\*(R" codes.  This restriction avoids many problemsin parsing and rendering L<...> codes..IP "\(bu" 4In a \f(CW\*(C`L<text|...>\*(C'\fR code, text may contain formatting codesfor formatting or for E<...> escapes, as in:.Sp.Vb 1\&  L<B<ummE<234>stuff>|...>.Ve.SpFor \f(CW\*(C`L<...>\*(C'\fR codes without a \*(L"name|\*(R" part, only\&\f(CW\*(C`E<...>\*(C'\fR and \f(CW\*(C`Z<>\*(C'\fR codes may occur \*(-- noother formatting codes.  That is, authors should not use"\f(CW\*(C`L<B<Foo::Bar>>\*(C'\fR"..SpNote, however, that formatting codes and Z<>'s can occur in anyand all parts of an L<...> (i.e., in \fIname\fR, \fIsection\fR, \fItext\fR,and \fIurl\fR)..SpAuthors must not nest L<...> codes.  For example, \*(L"L<TheL<Foo::Bar> man page>\*(R" should be treated as an error..IP "\(bu" 4Note that Pod authors may use formatting codes inside the \*(L"text\*(R"part of \*(L"L<text|name>\*(R" (and so on for L<text|/\*(L"sec\*(R">)..SpIn other words, this is valid:.Sp.Vb 1\&  Go read L<the docs on C<$.>|perlvar/"$.">.Ve.SpSome output formats that do allow rendering \*(L"L<...>\*(R" codes ashypertext, might not allow the link-text to be formatted; inthat case, formatters will have to just ignore that formatting..IP "\(bu" 4At time of writing, \f(CW\*(C`L<name>\*(C'\fR values are of two types:either the name of a Pod page like \f(CW\*(C`L<Foo::Bar>\*(C'\fR (whichmight be a real Perl module or program in an \f(CW@INC\fR / \s-1PATH\s0directory, or a .pod file in those places); or the name of a \s-1UNIX\s0man page, like \f(CW\*(C`L<crontab(5)>\*(C'\fR.  In theory, \f(CW\*(C`L<chmod>\*(C'\fRin ambiguous between a Pod page called \*(L"chmod\*(R", or the Unix man page\&\*(L"chmod\*(R" (in whatever man-section).  However, the presence of a stringin parens, as in \*(L"\fIcrontab\fR\|(5)\*(R", is sufficient to signal that whatis being discussed is not a Pod page, and so is presumably a\&\s-1UNIX\s0 man page.  The distinction is of no importance to manyPod processors, but some processors that render to hypertext formatsmay need to distinguish them in order to know how to render agiven \f(CW\*(C`L<foo>\*(C'\fR code..IP "\(bu" 4Previous versions of perlpod allowed for a \f(CW\*(C`L<section>\*(C'\fR syntax(as in \f(CW\*(C`L<Object Attributes>\*(C'\fR), which was not easily distinguishablefrom \f(CW\*(C`L<name>\*(C'\fR syntax.  This syntax is no longer in thespecification, and has been replaced by the \f(CW\*(C`L<"section">\*(C'\fR syntax(where the quotes were formerly optional).  Pod parsers should toleratethe \f(CW\*(C`L<section>\*(C'\fR syntax, for a while at least.  The suggestedheuristic for distinguishing \f(CW\*(C`L<section>\*(C'\fR from \f(CW\*(C`L<name>\*(C'\fRis that if it contains any whitespace, it's a \fIsection\fR.  Pod processorsmay warn about this being deprecated syntax..SH "About =over...=back Regions".IX Header "About =over...=back Regions"\&\*(L"=over\*(R"...\*(L"=back\*(R" regions are used for various kinds of list-likestructures.  (I use the term \*(L"region\*(R" here simply as a collectiveterm for everything from the \*(L"=over\*(R" to the matching \*(L"=back\*(R".).IP "\(bu" 4The non-zero numeric \fIindentlevel\fR in "=over \fIindentlevel\fR\*(L" ...\&\*(R"=back\*(L" is used for giving the formatter a clue as to how many\&\*(R"spaces" (ems, or roughly equivalent units) it should tab over,although many formatters will have to convert this to an absolutemeasurement that may not exactly match with the size of spaces (or M's)in the document's base font.  Other formatters may have to completelyignore the number.  The lack of any explicit \fIindentlevel\fR parameter isequivalent to an \fIindentlevel\fR value of 4.  Pod processors maycomplain if \fIindentlevel\fR is present but is not a positive numbermatching \f(CW\*(C`m/\eA(\ed*\e.)?\ed+\ez/\*(C'\fR..IP "\(bu" 4Authors of Pod formatters are reminded that \*(L"=over\*(R" ... \*(L"=back\*(R" maymap to several different constructs in your output format.  Forexample, in converting Pod to (X)HTML, it can map to any of<ul>...</ul>, <ol>...</ol>, <dl>...</dl>, or<blockquote>...</blockquote>.  Similarly, \*(L"=item\*(R" can map to <li> or<dt>..IP "\(bu" 4Each \*(L"=over\*(R" ... \*(L"=back\*(R" region should be one of the following:.RS 4.IP "\(bu" 4An \*(L"=over\*(R" ... \*(L"=back\*(R" region containing only \*(L"=item *\*(R" commands,each followed by some number of ordinary/verbatim paragraphs, othernested \*(L"=over\*(R" ... \*(L"=back\*(R" regions, \*(L"=for...\*(R" paragraphs, and\&\*(L"=begin\*(R"...\*(L"=end\*(R" regions..Sp(Pod processors must tolerate a bare \*(L"=item\*(R" as if it were \*(L"=item*\*(R".)  Whether \*(L"*\*(R" is rendered as a literal asterisk, an \*(L"o\*(R", or assome kind of real bullet character, is left up to the Pod formatter,and may depend on the level of nesting..IP "\(bu" 4An \*(L"=over\*(R" ... \*(L"=back\*(R" region containing only\&\f(CW\*(C`m/\eA=item\es+\ed+\e.?\es*\ez/\*(C'\fR paragraphs, each one (or each group of them)followed by some number of ordinary/verbatim paragraphs, other nested\&\*(L"=over\*(R" ... \*(L"=back\*(R" regions, \*(L"=for...\*(R" paragraphs, and/or\&\*(L"=begin\*(R"...\*(L"=end\*(R" codes.  Note that the numbers must start at 1in each section, and must proceed in order and without skippingnumbers..Sp(Pod processors must tolerate lines like \*(L"=item 1\*(R" as if they were\&\*(L"=item 1.\*(R", with the period.).IP "\(bu" 4An \*(L"=over\*(R" ... \*(L"=back\*(R" region containing only \*(L"=item [text]\*(R"commands, each one (or each group of them) followed by some number ofordinary/verbatim paragraphs, other nested \*(L"=over\*(R" ... \*(L"=back\*(R"regions, or \*(L"=for...\*(R" paragraphs, and \*(L"=begin\*(R"...\*(L"=end\*(R" regions..SpThe \*(L"=item [text]\*(R" paragraph should not match\&\f(CW\*(C`m/\eA=item\es+\ed+\e.?\es*\ez/\*(C'\fR or \f(CW\*(C`m/\eA=item\es+\e*\es*\ez/\*(C'\fR, nor should itmatch just \f(CW\*(C`m/\eA=item\es*\ez/\*(C'\fR..IP "\(bu" 4An \*(L"=over\*(R" ... \*(L"=back\*(R" region containing no \*(L"=item\*(R" paragraphs atall, and containing only some number of ordinary/verbatim paragraphs, and possibly also some nested \*(L"=over\*(R"\&... \*(L"=back\*(R" regions, \*(L"=for...\*(R" paragraphs, and \*(L"=begin\*(R"...\*(L"=end\*(R"regions.  Such an itemless \*(L"=over\*(R" ... \*(L"=back\*(R" region in Pod isequivalent in meaning to a \*(L"<blockquote>...</blockquote>\*(R" element in\&\s-1HTML\s0..RE.RS 4.SpNote that with all the above cases, you can determine which type of\&\*(L"=over\*(R" ... \*(L"=back\*(R" you have, by examining the first (non\-\*(L"=cut\*(R", non\-\*(L"=pod\*(R") Pod paragraph after the \*(L"=over\*(R" command..RE.IP "\(bu" 4Pod formatters \fImust\fR tolerate arbitrarily large amounts of textin the "=item \fItext...\fR" paragraph.  In practice, most suchparagraphs are short, as in:.Sp.Vb 1\&  =item For cutting off our trade with all parts of the world.Ve.SpBut they may be arbitrarily long:.Sp.Vb 2\&  =item For transporting us beyond seas to be tried for pretended\&  offenses\&\&  =item He is at this time transporting large armies of foreign\&  mercenaries to complete the works of death, desolation and\&  tyranny, already begun with circumstances of cruelty and perfidy\&  scarcely paralleled in the most barbarous ages, and totally\&  unworthy the head of a civilized nation..Ve.IP "\(bu" 4Pod processors should tolerate \*(L"=item *\*(R" / "=item \fInumber\fR" commandswith no accompanying paragraph.  The middle item is an example:.Sp.Vb 1\&  =over\&\&  =item 1\&\&  Pick up dry cleaning.\&\&  =item 2\&\&  =item 3\&\&  Stop by the store.  Get Abba Zabas, Stoli, and cheap lawn chairs.\&\&  =back.Ve.IP "\(bu" 4No \*(L"=over\*(R" ... \*(L"=back\*(R" region can contain headings.  Processors maytreat such a heading as an error..IP "\(bu" 4Note that an \*(L"=over\*(R" ... \*(L"=back\*(R" region should have somecontent.  That is, authors should not have an empty region like this:.Sp.Vb 1\&  =over\&\&  =back.Ve.SpPod processors seeing such a contentless \*(L"=over\*(R" ... \*(L"=back\*(R" region,may ignore it, or may report it as an error..IP "\(bu" 4Processors must tolerate an \*(L"=over\*(R" list that 

⌨️ 快捷键说明

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