📄 perl5005delta.1
字号:
.\" 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 "PERL5005DELTA 1".TH PERL5005DELTA 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"perl5005delta \- what's new for perl5.005.SH "DESCRIPTION".IX Header "DESCRIPTION"This document describes differences between the 5.004 release and this one..SH "About the new versioning system".IX Header "About the new versioning system"Perl is now developed on two tracks: a maintenance track that makessmall, safe updates to released production versions with emphasis oncompatibility; and a development track that pursues more aggressiveevolution. Maintenance releases (which should be considered productionquality) have subversion numbers that run from \f(CW1\fR to \f(CW49\fR, anddevelopment releases (which should be considered \*(L"alpha\*(R" quality) runfrom \f(CW50\fR to \f(CW99\fR..PPPerl 5.005 is the combined product of the new dual-track developmentscheme..SH "Incompatible Changes".IX Header "Incompatible Changes".Sh "\s-1WARNING:\s0 This version is not binary compatible with Perl 5.004.".IX Subsection "WARNING: This version is not binary compatible with Perl 5.004."Starting with Perl 5.004_50 there were many deep and far-reaching changesto the language internals. If you have dynamically loaded extensionsthat you built under perl 5.003 or 5.004, you can continue to use themwith 5.004, but you will need to rebuild and reinstall those extensionsto use them 5.005. See \fI\s-1INSTALL\s0\fR for detailed instructions on how toupgrade..Sh "Default installation structure has changed".IX Subsection "Default installation structure has changed"The new Configure defaults are designed to allow a smooth upgrade from5.004 to 5.005, but you should read \fI\s-1INSTALL\s0\fR for a detaileddiscussion of the changes in order to adapt them to your system..Sh "Perl Source Compatibility".IX Subsection "Perl Source Compatibility"When none of the experimental features are enabled, there should bevery few user-visible Perl source compatibility issues..PPIf threads are enabled, then some caveats apply. \f(CW@_\fR and \f(CW$_\fR becomelexical variables. The effect of this should be largely transparent tothe user, but there are some boundary conditions under which user willneed to be aware of the issues. For example, \f(CW\*(C`local(@_)\*(C'\fR results ina \*(L"Can't localize lexical variable \f(CW@_\fR ...\*(R" message. This may be enabledin a future version..PPSome new keywords have been introduced. These are generally expected tohave very little impact on compatibility. See "New \f(CW\*(C`INIT\*(C'\fR keyword","New \f(CW\*(C`lock\*(C'\fR keyword", and "New \f(CW\*(C`qr//\*(C'\fR operator"..PPCertain barewords are now reserved. Use of these will provoke a warningif you have asked for them with the \f(CW\*(C`\-w\*(C'\fR switch.See "\f(CW\*(C`our\*(C'\fR is now a reserved word"..Sh "C Source Compatibility".IX Subsection "C Source Compatibility"There have been a large number of changes in the internals to supportthe new features in this release..IP "\(bu" 4Core sources now require \s-1ANSI\s0 C compiler.SpAn \s-1ANSI\s0 C compiler is now \fBrequired\fR to build perl. See \fI\s-1INSTALL\s0\fR..IP "\(bu" 4All Perl global variables must now be referenced with an explicit prefix.SpAll Perl global variables that are visible for use by extensions nowhave a \f(CW\*(C`PL_\*(C'\fR prefix. New extensions should \f(CW\*(C`not\*(C'\fR refer to perl globalsby their unqualified names. To preserve sanity, we provide limitedbackward compatibility for globals that are being widely used like\&\f(CW\*(C`sv_undef\*(C'\fR and \f(CW\*(C`na\*(C'\fR (which should now be written as \f(CW\*(C`PL_sv_undef\*(C'\fR,\&\f(CW\*(C`PL_na\*(C'\fR etc.).SpIf you find that your \s-1XS\s0 extension does not compile anymore because aperl global is not visible, try adding a \f(CW\*(C`PL_\*(C'\fR prefix to the globaland rebuild..SpIt is strongly recommended that all functions in the Perl \s-1API\s0 that don'tbegin with \f(CW\*(C`perl\*(C'\fR be referenced with a \f(CW\*(C`Perl_\*(C'\fR prefix. The bare functionnames without the \f(CW\*(C`Perl_\*(C'\fR prefix are supported with macros, but thissupport may cease in a future release..SpSee perlapi..IP "\(bu" 4Enabling threads has source compatibility issues.SpPerl built with threading enabled requires extensions to use the new\&\f(CW\*(C`dTHR\*(C'\fR macro to initialize the handle to access per-thread data.If you see a compiler error that talks about the variable \f(CW\*(C`thr\*(C'\fR notbeing declared (when building a module that has \s-1XS\s0 code), you needto add \f(CW\*(C`dTHR;\*(C'\fR at the beginning of the block that elicited the error..SpThe \s-1API\s0 function \f(CW\*(C`perl_get_sv("@",FALSE)\*(C'\fR should be used instead ofdirectly accessing perl globals as \f(CW\*(C`GvSV(errgv)\*(C'\fR. The \s-1API\s0 call isbackward compatible with existing perls and provides source compatibilitywith threading is enabled..SpSee \*(L"C Source Compatibility\*(R" for more information..Sh "Binary Compatibility".IX Subsection "Binary Compatibility"This version is \s-1NOT\s0 binary compatible with older versions. All extensionswill need to be recompiled. Further binaries built with threads enabledare incompatible with binaries built without. This should largely betransparent to the user, as all binary incompatible configurations havetheir own unique architecture name, and extension binaries get installed atunique locations. This allows coexistence of several configurations inthe same directory hierarchy. See \fI\s-1INSTALL\s0\fR..Sh "Security fixes may affect compatibility".IX Subsection "Security fixes may affect compatibility"A few taint leaks and taint omissions have been corrected. This may leadto \*(L"failure\*(R" of scripts that used to work with older versions. Compilingwith \-DINCOMPLETE_TAINTS provides a perl with minimal amounts of changesto the tainting behavior. But note that the resulting perl will haveknown insecurities..PPOneliners with the \f(CW\*(C`\-e\*(C'\fR switch do not create temporary files anymore..Sh "Relaxed new mandatory warnings introduced in 5.004".IX Subsection "Relaxed new mandatory warnings introduced in 5.004"Many new warnings that were introduced in 5.004 have been madeoptional. Some of these warnings are still present, but perl's newfeatures make them less often a problem. See \*(L"New Diagnostics\*(R".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -