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

📄 data::dumper.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
.\" 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 "Data::Dumper 3".TH Data::Dumper 3 "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"Data::Dumper \- stringified perl data structures, suitable for both printing and \f(CW\*(C`eval\*(C'\fR.SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 1\&    use Data::Dumper;\&\&    # simple procedural interface\&    print Dumper($foo, $bar);\&\&    # extended usage with names\&    print Data::Dumper\->Dump([$foo, $bar], [qw(foo *ary)]);\&\&    # configuration variables\&    {\&      local $Data::Dumper::Purity = 1;\&      eval Data::Dumper\->Dump([$foo, $bar], [qw(foo *ary)]);\&    }\&\&    # OO usage\&    $d = Data::Dumper\->new([$foo, $bar], [qw(foo *ary)]);\&       ...\&    print $d\->Dump;\&       ...\&    $d\->Purity(1)\->Terse(1)\->Deepcopy(1);\&    eval $d\->Dump;.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"Given a list of scalars or reference variables, writes out their contents inperl syntax. The references can also be objects.  The contents of eachvariable is output in a single Perl statement.  Handles self-referentialstructures correctly..PPThe return value can be \f(CW\*(C`eval\*(C'\fRed to get back an identical copy of theoriginal reference structure..PPAny references that are the same as one of those passed in will be named\&\f(CW$VAR\fR\fIn\fR (where \fIn\fR is a numeric suffix), and other duplicate referencesto substructures within \f(CW$VAR\fR\fIn\fR will be appropriately labeled using arrownotation.  You can specify names for individual values to be dumped if youuse the \f(CW\*(C`Dump()\*(C'\fR method, or you can change the default \f(CW$VAR\fR prefix tosomething else.  See \f(CW$Data::Dumper::Varname\fR and \f(CW$Data::Dumper::Terse\fRbelow..PPThe default output of self-referential structures can be \f(CW\*(C`eval\*(C'\fRed, but thenested references to \f(CW$VAR\fR\fIn\fR will be undefined, since a recursivestructure cannot be constructed using one Perl statement.  You should set the\&\f(CW\*(C`Purity\*(C'\fR flag to 1 to get additional statements that will correctly fill inthese references.  Moreover, if \f(CW\*(C`eval\*(C'\fRed when strictures are in effect,you need to ensure that any variables it accesses are previously declared..PPIn the extended usage form, the references to be dumped can be givenuser-specified names.  If a name begins with a \f(CW\*(C`*\*(C'\fR, the output will describe the dereferenced type of the supplied reference for hashes andarrays, and coderefs.  Output of names will be avoided where possible ifthe \f(CW\*(C`Terse\*(C'\fR flag is set..PPIn many cases, methods that are used to set the internal state of theobject will return the object itself, so method calls can be convenientlychained together..PPSeveral styles of output are possible, all controlled by settingthe \f(CW\*(C`Indent\*(C'\fR flag.  See \*(L"Configuration Variables or Methods\*(R" below for details..Sh "Methods".IX Subsection "Methods".IP "\fI\s-1PACKAGE\s0\fR\->new(\fI\s-1ARRAYREF\s0 [\fR, \fI\s-1ARRAYREF\s0]\fR)" 4.IX Item "PACKAGE->new(ARRAYREF [, ARRAYREF])"Returns a newly created \f(CW\*(C`Data::Dumper\*(C'\fR object.  The first argument is ananonymous array of values to be dumped.  The optional second argument is ananonymous array of names for the values.  The names need not have a leading\&\f(CW\*(C`$\*(C'\fR sign, and must be comprised of alphanumeric characters.  You can begina name with a \f(CW\*(C`*\*(C'\fR to specify that the dereferenced type must be dumpedinstead of the reference itself, for \s-1ARRAY\s0 and \s-1HASH\s0 references..SpThe prefix specified by \f(CW$Data::Dumper::Varname\fR will be used with anumeric suffix if the name for a value is undefined..SpData::Dumper will catalog all references encountered while dumping thevalues. Cross-references (in the form of names of substructures in perlsyntax) will be inserted at all possible points, preserving any structuralinterdependencies in the original set of values.  Structure traversal isdepth-first,  and proceeds in order from the first supplied value tothe last..ie n .IP "\fI\fI$OBJ\fI\fR\->Dump  \fIor\fR  \fI\s-1PACKAGE\s0\fR\->Dump(\fI\s-1ARRAYREF\s0 [\fR, \fI\s-1ARRAYREF\s0]\fR)" 4.el .IP "\fI\f(CI$OBJ\fI\fR\->Dump  \fIor\fR  \fI\s-1PACKAGE\s0\fR\->Dump(\fI\s-1ARRAYREF\s0 [\fR, \fI\s-1ARRAYREF\s0]\fR)" 4.IX Item "$OBJ->Dump  or  PACKAGE->Dump(ARRAYREF [, ARRAYREF])"Returns the stringified form of the values stored in the object (preservingthe order in which they were supplied to \f(CW\*(C`new\*(C'\fR), subject to theconfiguration options below.  In a list context, it returns a listof strings corresponding to the supplied values..SpThe second form, for convenience, simply calls the \f(CW\*(C`new\*(C'\fR method on itsarguments before dumping the object immediately..ie n .IP "\fI\fI$OBJ\fI\fR\->Seen(\fI[\s-1HASHREF\s0]\fR)" 4.el .IP "\fI\f(CI$OBJ\fI\fR\->Seen(\fI[\s-1HASHREF\s0]\fR)" 4.IX Item "$OBJ->Seen([HASHREF])"Queries or adds to the internal table of already encountered references.You must use \f(CW\*(C`Reset\*(C'\fR to explicitly clear the table if needed.  Suchreferences are not dumped; instead, their names are inserted wherever theyare encountered subsequently.  This is useful especially for properlydumping subroutine references..SpExpects an anonymous hash of name => value pairs.  Same rules apply for namesas in \f(CW\*(C`new\*(C'\fR.  If no argument is supplied, will return the \*(L"seen\*(R" list ofname => value pairs, in a list context.  Otherwise, returns the objectitself..ie n .IP "\fI\fI$OBJ\fI\fR\->Values(\fI[\s-1ARRAYREF\s0]\fR)" 4.el .IP "\fI\f(CI$OBJ\fI\fR\->Values(\fI[\s-1ARRAYREF\s0]\fR)" 4.IX Item "$OBJ->Values([ARRAYREF])"Queries or replaces the internal array of values that will be dumped.When called without arguments, returns the values.  Otherwise, returns theobject itself..ie n .IP "\fI\fI$OBJ\fI\fR\->Names(\fI[\s-1ARRAYREF\s0]\fR)" 4.el .IP "\fI\f(CI$OBJ\fI\fR\->Names(\fI[\s-1ARRAYREF\s0]\fR)" 4.IX Item "$OBJ->Names([ARRAYREF])"Queries or replaces the internal array of user supplied names for the valuesthat will be dumped.  When called without arguments, returns the names.Otherwise, returns the object itself..ie n .IP "\fI\fI$OBJ\fI\fR\->Reset" 4.el .IP "\fI\f(CI$OBJ\fI\fR\->Reset" 4.IX Item "$OBJ->Reset"Clears the internal table of \*(L"seen\*(R" references and returns the objectitself..Sh "Functions".IX Subsection "Functions".IP "Dumper(\fI\s-1LIST\s0\fR)" 4.IX Item "Dumper(LIST)"Returns the stringified form of the values in the list, subject to theconfiguration options below.  The values will be named \f(CW$VAR\fR\fIn\fR in theoutput, where \fIn\fR is a numeric suffix.  Will return a list of stringsin a list context..Sh "Configuration Variables or Methods".IX Subsection "Configuration Variables or Methods"Several configuration variables can be used to control the kind of outputgenerated when using the procedural interface.  These variables are usually\&\f(CW\*(C`local\*(C'\fRized in a block so that other parts of the code are not affected bythe change..PPThese variables determine the default state of the object created by callingthe \f(CW\*(C`new\*(C'\fR method, but cannot be used to alter the state of the objectthereafter.  The equivalent method names should be used instead to queryor set the internal state of the object..PPThe method forms return the object itself when called with arguments,so that they can be chained together nicely..IP "\(bu" 4\&\f(CW$Data::Dumper::Indent\fR  \fIor\fR  \fI\f(CI$OBJ\fI\fR\->Indent(\fI[\s-1NEWVAL\s0]\fR).SpControls the style of indentation.  It can be set to 0, 1, 2 or 3.  Style 0spews output without any newlines, indentation, or spaces between listitems.  It is the most compact format possible that can still be calledvalid perl.  Style 1 outputs a readable form with newlines but no fancyindentation (each level in the structure is simply indented by a fixedamount of whitespace).  Style 2 (the default) outputs a very readable formwhich takes into account the length of hash keys (so the hash value linesup).  Style 3 is like style 2, but also annotates the elements of arrayswith their index (but the comment is on its own line, so array outputconsumes twice the number of lines).  Style 2 is the default..IP "\(bu" 4\&\f(CW$Data::Dumper::Purity\fR  \fIor\fR  \fI\f(CI$OBJ\fI\fR\->Purity(\fI[\s-1NEWVAL\s0]\fR).SpControls the degree to which the output can be \f(CW\*(C`eval\*(C'\fRed to recreate thesupplied reference structures.  Setting it to 1 will output additional perlstatements that will correctly recreate nested references.  The default is0..IP "\(bu" 4\&\f(CW$Data::Dumper::Pad\fR  \fIor\fR  \fI\f(CI$OBJ\fI\fR\->Pad(\fI[\s-1NEWVAL\s0]\fR).SpSpecifies the string that will be prefixed to every line of the output.Empty string by default..IP "\(bu" 4\&\f(CW$Data::Dumper::Varname\fR  \fIor\fR  \fI\f(CI$OBJ\fI\fR\->Varname(\fI[\s-1NEWVAL\s0]\fR).SpContains the prefix to use for tagging variable names in the output. Thedefault is \*(L"\s-1VAR\s0\*(R"..IP "\(bu" 4\&\f(CW$Data::Dumper::Useqq\fR  \fIor\fR  \fI\f(CI$OBJ\fI\fR\->Useqq(\fI[\s-1NEWVAL\s0]\fR).SpWhen set, enables the use of double quotes for representing string values.Whitespace other than space will be represented as \f(CW\*(C`[\en\et\er]\*(C'\fR, \*(L"unsafe\*(R"characters will be backslashed, and unprintable characters will be output asquoted octal integers.  Since setting this variable imposes a performancepenalty, the default is 0.  \f(CW\*(C`Dump()\*(C'\fR will run slower if this flag is set,since the fast \s-1XSUB\s0 implementation doesn't support it yet..IP "\(bu" 4\&\f(CW$Data::Dumper::Terse\fR  \fIor\fR  \fI\f(CI$OBJ\fI\fR\->Terse(\fI[\s-1NEWVAL\s0]\fR).SpWhen set, Data::Dumper will emit single, non-self-referential values asatoms/terms rather than statements.  This means that the \f(CW$VAR\fR\fIn\fR nameswill be avoided where possible, but be advised that such output may not

⌨️ 快捷键说明

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