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

📄 perl5004delta.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 "PERL5004DELTA 1".TH PERL5004DELTA 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"perl5004delta \- what's new for perl5.004.SH "DESCRIPTION".IX Header "DESCRIPTION"This document describes differences between the 5.003 release (asdocumented in \fIProgramming Perl\fR, second edition\*(--the Camel Book) andthis one..SH "Supported Environments".IX Header "Supported Environments"Perl5.004 builds out of the box on Unix, Plan 9, LynxOS, \s-1VMS\s0, \s-1OS/2\s0,\&\s-1QNX\s0, AmigaOS, and Windows \s-1NT\s0.  Perl runs on Windows 95 as well, but itcannot be built there, for lack of a reasonable command interpreter..SH "Core Changes".IX Header "Core Changes"Most importantly, many bugs were fixed, including several securityproblems.  See the \fIChanges\fR file in the distribution for details..ie n .Sh "List assignment to %ENV works".el .Sh "List assignment to \f(CW%ENV\fP works".IX Subsection "List assignment to %ENV works"\&\f(CW\*(C`%ENV = ()\*(C'\fR and \f(CW\*(C`%ENV = @list\*(C'\fR now work as expected (except on \s-1VMS\s0where it generates a fatal error)..ie n .Sh "Change to ""Can't locate Foo.pm in @INC"" error".el .Sh "Change to ``Can't locate Foo.pm in \f(CW@INC\fP'' error".IX Subsection "Change to Can't locate Foo.pm in @INC error"The error \*(L"Can't locate Foo.pm in \f(CW@INC\fR\*(R" now lists the contents of \f(CW@INC\fRfor easier debugging..Sh "Compilation option: Binary compatibility with 5.003".IX Subsection "Compilation option: Binary compatibility with 5.003"There is a new Configure question that asks if you want to maintainbinary compatibility with Perl 5.003.  If you choose binarycompatibility, you do not have to recompile your extensions, but youmight have symbol conflicts if you embed Perl in another application,just as in the 5.003 release.  By default, binary compatibilityis preserved at the expense of symbol table pollution..ie n .Sh "$PERL5OPT environment variable".el .Sh "\f(CW$PERL5OPT\fP environment variable".IX Subsection "$PERL5OPT environment variable"You may now put Perl options in the \f(CW$PERL5OPT\fR environment variable.Unless Perl is running with taint checks, it will interpret thisvariable as if its contents had appeared on a \*(L"#!perl\*(R" line at thebeginning of your script, except that hyphens are optional.  \s-1PERL5OPT\s0may only be used to set the following switches: \fB\-[DIMUdmw]\fR..Sh "Limitations on \fB\-M\fP, \fB\-m\fP, and \fB\-T\fP options".IX Subsection "Limitations on -M, -m, and -T options"The \f(CW\*(C`\-M\*(C'\fR and \f(CW\*(C`\-m\*(C'\fR options are no longer allowed on the \f(CW\*(C`#!\*(C'\fR line ofa script.  If a script needs a module, it should invoke it with the\&\f(CW\*(C`use\*(C'\fR pragma..PPThe \fB\-T\fR option is also forbidden on the \f(CW\*(C`#!\*(C'\fR line of a script,unless it was present on the Perl command line.  Due to the way \f(CW\*(C`#!\*(C'\fRworks, this usually means that \fB\-T\fR must be in the first argument.Thus:.PP.Vb 1\&    #!/usr/bin/perl \-T \-w.Ve.PPwill probably work for an executable script invoked as \f(CW\*(C`scriptname\*(C'\fR,while:.PP.Vb 1\&    #!/usr/bin/perl \-w \-T.Ve.PPwill probably fail under the same conditions.  (Non-Unix systems willprobably not follow this rule.)  But \f(CW\*(C`perl scriptname\*(C'\fR is guaranteedto fail, since then there is no chance of \fB\-T\fR being found on thecommand line before it is found on the \f(CW\*(C`#!\*(C'\fR line..Sh "More precise warnings".IX Subsection "More precise warnings"If you removed the \fB\-w\fR option from your Perl 5.003 scripts because itmade Perl too verbose, we recommend that you try putting it back whenyou upgrade to Perl 5.004.  Each new perl version tends to remove someundesirable warnings, while adding new warnings that may catch bugs inyour scripts..ie n .Sh "Deprecated: Inherited ""AUTOLOAD"" for non-methods".el .Sh "Deprecated: Inherited \f(CWAUTOLOAD\fP for non-methods".IX Subsection "Deprecated: Inherited AUTOLOAD for non-methods"Before Perl 5.004, \f(CW\*(C`AUTOLOAD\*(C'\fR functions were looked up as methods(using the \f(CW@ISA\fR hierarchy), even when the function to be autoloadedwas called as a plain function (e.g. \f(CW\*(C`Foo::bar()\*(C'\fR), not a method(e.g. \f(CW\*(C`Foo\->bar()\*(C'\fR or \f(CW\*(C`$obj\->bar()\*(C'\fR)..PPPerl 5.005 will use method lookup only for methods' \f(CW\*(C`AUTOLOAD\*(C'\fRs.However, there is a significant base of existing code that may be usingthe old behavior.  So, as an interim step, Perl 5.004 issues an optionalwarning when a non-method uses an inherited \f(CW\*(C`AUTOLOAD\*(C'\fR..PPThe simple rule is:  Inheritance will not work when autoloadingnon-methods.  The simple fix for old code is:  In any module that used todepend on inheriting \f(CW\*(C`AUTOLOAD\*(C'\fR for non-methods from a base class named\&\f(CW\*(C`BaseClass\*(C'\fR, execute \f(CW\*(C`*AUTOLOAD = \e&BaseClass::AUTOLOAD\*(C'\fR during startup..ie n .Sh "Previously deprecated %OVERLOAD is no longer usable".el .Sh "Previously deprecated \f(CW%OVERLOAD\fP is no longer usable".IX Subsection "Previously deprecated %OVERLOAD is no longer usable"Using \f(CW%OVERLOAD\fR to define overloading was deprecated in 5.003.Overloading is now defined using the overload pragma. \f(CW%OVERLOAD\fR isstill used internally but should not be used by Perl scripts. Seeoverload for more details..Sh "Subroutine arguments created only when they're modified".IX Subsection "Subroutine arguments created only when they're modified"In Perl 5.004, nonexistent array and hash elements used as subroutineparameters are brought into existence only if they are actuallyassigned to (via \f(CW@_\fR)..PPEarlier versions of Perl vary in their handling of such arguments.Perl versions 5.002 and 5.003 always brought them into existence.Perl versions 5.000 and 5.001 brought them into existence only ifthey were not the first argument (which was almost certainly a bug).Earlier versions of Perl never brought them into existence..PPFor example, given this code:.PP.Vb 5\&     undef @a; undef %a;\&     sub show { print $_[0] };\&     sub change { $_[0]++ };\&     show($a[2]);\&     change($a{b});.Ve.PPAfter this code executes in Perl 5.004, \f(CW$a\fR{b} exists but \f(CW$a\fR[2] doesnot.  In Perl 5.002 and 5.003, both \f(CW$a\fR{b} and \f(CW$a\fR[2] would have existed(but \f(CW$a\fR[2]'s value would have been undefined)..ie n .Sh "Group vector changeable with $)".el .Sh "Group vector changeable with \f(CW$)\fP".IX Subsection "Group vector changeable with $)"The \f(CW$)\fR special variable has always (well, in Perl 5, at least)reflected not only the current effective group, but also the group listas returned by the \f(CW\*(C`getgroups()\*(C'\fR C function (if there is one).However, until this release, there has not been a way to call the\&\f(CW\*(C`setgroups()\*(C'\fR C function from Perl..PPIn Perl 5.004, assigning to \f(CW$)\fR is exactly symmetrical with examiningit: The first number in its string value is used as the effective gid;if there are any numbers after the first one, they are passed to the\&\f(CW\*(C`setgroups()\*(C'\fR C function (if there is one)..Sh "Fixed parsing of $$<digit>, &$<digit>, etc.".IX Subsection "Fixed parsing of $$<digit>, &$<digit>, etc."Perl versions before 5.004 misinterpreted any type marker followed by\&\*(L"$\*(R" and a digit.  For example, \*(L"$$0\*(R" was incorrectly taken to mean\&\*(L"${$}0\*(R" instead of \*(L"${$0}\*(R".  This bug is (mostly) fixed in Perl 5.004..PPHowever, the developers of Perl 5.004 could not fix this bug completely,because at least two widely-used modules depend on the old meaning of\&\*(L"$$0\*(R" in a string.  So Perl 5.004 still interprets \*(L"$$<digit>\*(R" in theold (broken) way inside strings; but it generates this message as awarning.  And in Perl 5.005, this special treatment will cease..Sh "Fixed localization of $<digit>, $&, etc.".IX Subsection "Fixed localization of $<digit>, $&, etc."Perl versions before 5.004 did not always properly localize theregex-related special variables.  Perl 5.004 does localize them, asthe documentation has always said it should.  This may result in \f(CW$1\fR,\&\f(CW$2\fR, etc. no longer being set where existing programs use them..Sh "No resetting of $. on implicit close".IX Subsection "No resetting of $. on implicit close"The documentation for Perl 5.0 has always stated that \f(CW$.\fR is \fInot\fR

⌨️ 快捷键说明

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