perl56delta.1
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· 1 代码 · 共 1,468 行 · 第 1/5 页
1
1,468 行
.\" 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 "PERL56DELTA 1".TH PERL56DELTA 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"perl56delta \- what's new for perl v5.6.0.SH "DESCRIPTION".IX Header "DESCRIPTION"This document describes differences between the 5.005 release and the 5.6.0release..SH "Core Enhancements".IX Header "Core Enhancements".Sh "Interpreter cloning, threads, and concurrency".IX Subsection "Interpreter cloning, threads, and concurrency"Perl 5.6.0 introduces the beginnings of support for running multipleinterpreters concurrently in different threads. In conjunction withthe \fIperl_clone()\fR \s-1API\s0 call, which can be used to selectively duplicatethe state of any given interpreter, it is possible to compile apiece of code once in an interpreter, clone that interpreterone or more times, and run all the resulting interpreters in distinctthreads..PPOn the Windows platform, this feature is used to emulate \fIfork()\fR at theinterpreter level. See perlfork for details about that..PPThis feature is still in evolution. It is eventually meant to be usedto selectively clone a subroutine and data reachable from thatsubroutine in a separate interpreter and run the cloned subroutinein a separate thread. Since there is no shared data between theinterpreters, little or no locking will be needed (unless parts ofthe symbol table are explicitly shared). This is obviously intendedto be an easy-to-use replacement for the existing threads support..PPSupport for cloning interpreters and interpreter concurrency can beenabled using the \-Dusethreads Configure option (see win32/Makefile forhow to enable it on Windows.) The resulting perl executable will befunctionally identical to one that was built with \-Dmultiplicity, butthe \fIperl_clone()\fR \s-1API\s0 call will only be available in the former..PP\&\-Dusethreads enables the cpp macro \s-1USE_ITHREADS\s0 by default, which in turnenables Perl source code changes that provide a clear separation betweenthe op tree and the data it operates with. The former is immutable, andcan therefore be shared between an interpreter and all of its clones,while the latter is considered local to each interpreter, and is thereforecopied for each clone..PPNote that building Perl with the \-Dusemultiplicity Configure optionis adequate if you wish to run multiple \fBindependent\fR interpretersconcurrently in different threads. \-Dusethreads only provides theadditional functionality of the \fIperl_clone()\fR \s-1API\s0 call and othersupport for running \fBcloned\fR interpreters concurrently..PP.Vb 2\& NOTE: This is an experimental feature. Implementation details are\& subject to change..Ve.Sh "Lexically scoped warning categories".IX Subsection "Lexically scoped warning categories"You can now control the granularity of warnings emitted by perl at a finerlevel using the \f(CW\*(C`use warnings\*(C'\fR pragma. warnings and perllexwarnhave copious documentation on this feature..Sh "Unicode and \s-1UTF\-8\s0 support".IX Subsection "Unicode and UTF-8 support"Perl now uses \s-1UTF\-8\s0 as its internal representation for characterstrings. The \f(CW\*(C`utf8\*(C'\fR and \f(CW\*(C`bytes\*(C'\fR pragmas are used to control this supportin the current lexical scope. See perlunicode, utf8 and bytes formore information..PPThis feature is expected to evolve quickly to support some form of I/Odisciplines that can be used to specify the kind of input and output data(bytes or characters). Until that happens, additional modules from \s-1CPAN\s0will be needed to complete the toolkit for dealing with Unicode..PP.Vb 2\& NOTE: This should be considered an experimental feature. Implementation\& details are subject to change..Ve.Sh "Support for interpolating named characters".IX Subsection "Support for interpolating named characters"The new \f(CW\*(C`\eN\*(C'\fR escape interpolates named characters within strings.For example, \f(CW"Hi! \eN{WHITE SMILING FACE}"\fR evaluates to a stringwith a unicode smiley face at the end..ie n .Sh """our"" declarations".el .Sh "``our'' declarations".IX Subsection "our declarations"An \*(L"our\*(R" declaration introduces a value that can be best understoodas a lexically scoped symbolic alias to a global variable in thepackage that was current where the variable was declared. This ismostly useful as an alternative to the \f(CW\*(C`vars\*(C'\fR pragma, but also providesthe opportunity to introduce typing and other attributes for suchvariables. See \*(L"our\*(R" in perlfunc..Sh "Support for strings represented as a vector of ordinals".IX Subsection "Support for strings represented as a vector of ordinals"Literals of the form \f(CW\*(C`v1.2.3.4\*(C'\fR are now parsed as a string composedof characters with the specified ordinals. This is an alternative, morereadable way to construct (possibly unicode) strings instead ofinterpolating characters, as in \f(CW"\ex{1}\ex{2}\ex{3}\ex{4}"\fR. The leading\&\f(CW\*(C`v\*(C'\fR may be omitted if there are more than two ordinals, so \f(CW1.2.3\fR isparsed the same as \f(CW\*(C`v1.2.3\*(C'\fR..PPStrings written in this form are also useful to represent version \*(L"numbers\*(R".It is easy to compare such version \*(L"numbers\*(R" (which are really just plainstrings) using any of the usual string comparison operators \f(CW\*(C`eq\*(C'\fR, \f(CW\*(C`ne\*(C'\fR,\&\f(CW\*(C`lt\*(C'\fR, \f(CW\*(C`gt\*(C'\fR, etc., or perform bitwise string operations on them using \f(CW\*(C`|\*(C'\fR,\&\f(CW\*(C`&\*(C'\fR, etc..PPIn conjunction with the new \f(CW$^V\fR magic variable (which containsthe perl version as a string), such literals can be used as a readable wayto check if you're running a particular version of Perl:.PP.Vb 4\& # this will parse in older versions of Perl also\& if ($^V and $^V gt v5.6.0) {\& # new features supported\& }.Ve.PP\&\f(CW\*(C`require\*(C'\fR and \f(CW\*(C`use\*(C'\fR also have some special magic to support suchliterals, but this particular usage should be avoided because it leads tomisleading error messages under versions of Perl which don't support vectorstrings. Using a true version number will ensure correct behavior in allversions of Perl:.PP.Vb 2\& require 5.006; # run time check for v5.6\& use 5.006_001; # compile time check for v5.6.1.Ve.PPAlso, \f(CW\*(C`sprintf\*(C'\fR and \f(CW\*(C`printf\*(C'\fR support the Perl-specific format flag \f(CW%v\fRto print ordinals of characters in arbitrary strings:.PP.Vb 3\& printf "v%vd", $^V; # prints current version, such as "v5.5.650"\& printf "%*vX", ":", $addr; # formats IPv6 address\& printf "%*vb", " ", $bits; # displays bitstring.Ve.PPSee \*(L"Scalar value constructors\*(R" in perldata for additional information..Sh "Improved Perl version numbering system".IX Subsection "Improved Perl version numbering system"Beginning with Perl version 5.6.0, the version number convention has beenchanged to a \*(L"dotted integer\*(R" scheme that is more commonly found in opensource projects..PPMaintenance versions of v5.6.0 will be released as v5.6.1, v5.6.2 etc.The next development series following v5.6.0 will be numbered v5.7.x,beginning with v5.7.0, and the next major production release followingv5.6.0 will be v5.8.0..PPThe English module now sets \f(CW$PERL_VERSION\fR to $^V (a string value) ratherthan \f(CW$]\fR (a numeric value). (This is a potential incompatibility.Send us a report via perlbug if you are affected by this.).PPThe v1.2.3 syntax is also now legal in Perl.See \*(L"Support for strings represented as a vector of ordinals\*(R" for more on that..PPTo cope with the new versioning system's use of at least three significantdigits for each version component, the method used for incrementing thesubversion number has also changed slightly. We assume that versions older
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?