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

📄 pod::parseutils.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
.IX Item "$list->rx()"Without argument, retrieves a regular expression for simplifying the individual item strings once the list type has been determined. Usage:E.g. when converting to \s-1HTML\s0, one might strip the leading number inan ordered list as \f(CW\*(C`<OL>\*(C'\fR already prints numbers itself.This must have been set before by either specifying\&\fB\-rx\fR in the \fB\f(BInew()\fB\fR method or by calling the \fB\f(BIrx()\fB\fR methodwith a scalar argument..ie n .IP "$list\fR\->\fIitem()" 4.el .IP "\f(CW$list\fR\->\fIitem()\fR" 4.IX Item "$list->item()"Without argument, retrieves the array of the items in this list.The items may be represented by any scalar.If an argument has been given, it is pushed on the list of items..ie n .IP "$list\fR\->\fIparent()" 4.el .IP "\f(CW$list\fR\->\fIparent()\fR" 4.IX Item "$list->parent()"Without argument, retrieves information about the parent holding thislist, which is represented as an arbitrary scalar.This must have been set before by either specifying\&\fB\-parent\fR in the \fB\f(BInew()\fB\fR method or by calling the \fB\f(BIparent()\fB\fR methodwith a scalar argument..ie n .IP "$list\fR\->\fItag()" 4.el .IP "\f(CW$list\fR\->\fItag()\fR" 4.IX Item "$list->tag()"Without argument, retrieves information about the list tag, which can beany scalar.This must have been set before by either specifying\&\fB\-tag\fR in the \fB\f(BInew()\fB\fR method or by calling the \fB\f(BItag()\fB\fR methodwith a scalar argument..Sh "Pod::Hyperlink".IX Subsection "Pod::Hyperlink"\&\fBPod::Hyperlink\fR is a class for manipulation of \s-1POD\s0 hyperlinks. Usage:.PP.Vb 1\&  my $link = Pod::Hyperlink\->new(\*(Aqalternative text|page/"section in page"\*(Aq);.Ve.PPThe \fBPod::Hyperlink\fR class is mainly designed to parse the contents of the\&\f(CW\*(C`L<...>\*(C'\fR sequence, providing a simple interface for accessing thedifferent parts of a \s-1POD\s0 hyperlink for further processing. It can also beused to construct hyperlinks..IP "Pod::Hyperlink\->\fInew()\fR" 4.IX Item "Pod::Hyperlink->new()"The \fB\f(BInew()\fB\fR method can either be passed a set of key/value pairs or a singlescalar value, namely the contents of a \f(CW\*(C`L<...>\*(C'\fR sequence. An objectof the class \f(CW\*(C`Pod::Hyperlink\*(C'\fR is returned. The value \f(CW\*(C`undef\*(C'\fR indicates afailure, the error message is stored in \f(CW$@\fR..ie n .IP "$link\->parse($string)" 4.el .IP "\f(CW$link\fR\->parse($string)" 4.IX Item "$link->parse($string)"This method can be used to (re)parse a (new) hyperlink, i.e. the contentsof a \f(CW\*(C`L<...>\*(C'\fR sequence. The result is stored in the current object.Warnings are stored in the \fBwarnings\fR property.E.g. sections like \f(CW\*(C`L<open(2)>\*(C'\fR are deprecated, as they do not pointto Perl documents. \f(CW\*(C`L<DBI::foo(3p)>\*(C'\fR is wrong as well, the manpagesection can simply be dropped..ie n .IP "$link\->markup($string)" 4.el .IP "\f(CW$link\fR\->markup($string)" 4.IX Item "$link->markup($string)"Set/retrieve the textual value of the link. This string contains specialmarkers \f(CW\*(C`P<>\*(C'\fR and \f(CW\*(C`Q<>\*(C'\fR that should be expanded by thetranslator's interior sequence expansion engine to theformatter-specific code to highlight/activate the hyperlink. The detailshave to be implemented in the translator..ie n .IP "$link\fR\->\fItext()" 4.el .IP "\f(CW$link\fR\->\fItext()\fR" 4.IX Item "$link->text()"This method returns the textual representation of the hyperlink as above,but without markers (read only). Depending on the link type this is one ofthe following alternatives (the + and * denote the portions of the textthat are marked up):.Sp.Vb 4\&  +perl+                    L<perl>\&  *$|* in +perlvar+         L<perlvar/$|>\&  *OPTIONS* in +perldoc+    L<perldoc/"OPTIONS">\&  *DESCRIPTION*             L<"DESCRIPTION">.Ve.ie n .IP "$link\fR\->\fIwarning()" 4.el .IP "\f(CW$link\fR\->\fIwarning()\fR" 4.IX Item "$link->warning()"After parsing, this method returns any warnings encountered during theparsing process..ie n .IP "$link\fR\->\fIfile()" 4.el .IP "\f(CW$link\fR\->\fIfile()\fR" 4.IX Item "$link->file()".PD 0.ie n .IP "$link\fR\->\fIline()" 4.el .IP "\f(CW$link\fR\->\fIline()\fR" 4.IX Item "$link->line()".PDJust simple slots for storing information about the line and the filethe link was encountered in. Has to be filled in manually..ie n .IP "$link\fR\->\fIpage()" 4.el .IP "\f(CW$link\fR\->\fIpage()\fR" 4.IX Item "$link->page()"This method sets or returns the \s-1POD\s0 page this link points to..ie n .IP "$link\fR\->\fInode()" 4.el .IP "\f(CW$link\fR\->\fInode()\fR" 4.IX Item "$link->node()"As above, but the destination node text of the link..ie n .IP "$link\fR\->\fIalttext()" 4.el .IP "\f(CW$link\fR\->\fIalttext()\fR" 4.IX Item "$link->alttext()"Sets or returns an alternative text specified in the link..ie n .IP "$link\fR\->\fItype()" 4.el .IP "\f(CW$link\fR\->\fItype()\fR" 4.IX Item "$link->type()"The node type, either \f(CW\*(C`section\*(C'\fR or \f(CW\*(C`item\*(C'\fR. As an unofficial type,there is also \f(CW\*(C`hyperlink\*(C'\fR, derived from e.g. \f(CW\*(C`L<http://perl.com>\*(C'\fR.ie n .IP "$link\fR\->\fIlink()" 4.el .IP "\f(CW$link\fR\->\fIlink()\fR" 4.IX Item "$link->link()"Returns the link as contents of \f(CW\*(C`L<>\*(C'\fR. Reciprocal to \fB\f(BIparse()\fB\fR..Sh "Pod::Cache".IX Subsection "Pod::Cache"\&\fBPod::Cache\fR holds information about a set of \s-1POD\s0 documents,especially the nodes for hyperlinks.The following methods are available:.IP "Pod::Cache\->\fInew()\fR" 4.IX Item "Pod::Cache->new()"Create a new cache object. This object can hold an arbitrary number of\&\s-1POD\s0 documents of class Pod::Cache::Item..ie n .IP "$cache\fR\->\fIitem()" 4.el .IP "\f(CW$cache\fR\->\fIitem()\fR" 4.IX Item "$cache->item()"Add a new item to the cache. Without arguments, this method returns alist of all cache elements..ie n .IP "$cache\->find_page($name)" 4.el .IP "\f(CW$cache\fR\->find_page($name)" 4.IX Item "$cache->find_page($name)"Look for a \s-1POD\s0 document named \f(CW$name\fR in the cache. Returns thereference to the corresponding Pod::Cache::Item object or undef ifnot found..Sh "Pod::Cache::Item".IX Subsection "Pod::Cache::Item"\&\fBPod::Cache::Item\fR holds information about individual \s-1POD\s0 documents,that can be grouped in a Pod::Cache object.It is intended to hold information about the hyperlink nodes of \s-1POD\s0documents.The following methods are available:.IP "Pod::Cache::Item\->\fInew()\fR" 4.IX Item "Pod::Cache::Item->new()"Create a new object..ie n .IP "$cacheitem\fR\->\fIpage()" 4.el .IP "\f(CW$cacheitem\fR\->\fIpage()\fR" 4.IX Item "$cacheitem->page()"Set/retrieve the \s-1POD\s0 document name (e.g. \*(L"Pod::Parser\*(R")..ie n .IP "$cacheitem\fR\->\fIdescription()" 4.el .IP "\f(CW$cacheitem\fR\->\fIdescription()\fR" 4.IX Item "$cacheitem->description()"Set/retrieve the \s-1POD\s0 short description as found in the \f(CW\*(C`=head1 NAME\*(C'\fRsection..ie n .IP "$cacheitem\fR\->\fIpath()" 4.el .IP "\f(CW$cacheitem\fR\->\fIpath()\fR" 4.IX Item "$cacheitem->path()"Set/retrieve the \s-1POD\s0 file storage path..ie n .IP "$cacheitem\fR\->\fIfile()" 4.el .IP "\f(CW$cacheitem\fR\->\fIfile()\fR" 4.IX Item "$cacheitem->file()"Set/retrieve the \s-1POD\s0 file name..ie n .IP "$cacheitem\fR\->\fInodes()" 4.el .IP "\f(CW$cacheitem\fR\->\fInodes()\fR" 4.IX Item "$cacheitem->nodes()"Add a node (or a list of nodes) to the document's node list. Note thatthe order is kept, i.e. start with the first node and end with the last.If no argument is given, the current list of nodes is returned in thesame order the nodes have been added.A node can be any scalar, but usually is a pair of node string andunique id for the \f(CW\*(C`find_node\*(C'\fR method to work correctly..ie n .IP "$cacheitem\->find_node($name)" 4.el .IP "\f(CW$cacheitem\fR\->find_node($name)" 4.IX Item "$cacheitem->find_node($name)"Look for a node or index entry named \f(CW$name\fR in the object.Returns the unique id of the node (i.e. the second element of the arraystored in the node array) or undef if not found..ie n .IP "$cacheitem\fR\->\fIidx()" 4.el .IP "\f(CW$cacheitem\fR\->\fIidx()\fR" 4.IX Item "$cacheitem->idx()"Add an index entry (or a list of them) to the document's index list. Note thatthe order is kept, i.e. start with the first node and end with the last.If no argument is given, the current list of index entries is returned in thesame order the entries have been added.An index entry can be any scalar, but usually is a pair of string andunique id..SH "AUTHOR".IX Header "AUTHOR"Please report bugs using <http://rt.cpan.org>..PPMarek Rouchal <marekr@cpan.org>, borrowinga lot of things from pod2man and pod2roff as well as other \s-1POD\s0processing tools by Tom Christiansen, Brad Appleton and Russ Allbery..SH "SEE ALSO".IX Header "SEE ALSO"pod2man, pod2roff, Pod::Parser, Pod::Checker,pod2html

⌨️ 快捷键说明

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