📄 perl591delta.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 "PERL591DELTA 1".TH PERL591DELTA 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"perl591delta \- what is new for perl v5.9.1.SH "DESCRIPTION".IX Header "DESCRIPTION"This document describes differences between the 5.9.0 and the 5.9.1development releases. See perl590delta for the differences between5.8.0 and 5.9.0..SH "Incompatible Changes".IX Header "Incompatible Changes".Sh "\fIsubstr()\fP lvalues are no longer fixed-length".IX Subsection "substr() lvalues are no longer fixed-length"The lvalues returned by the three argument form of \fIsubstr()\fR used to be a\&\*(L"fixed length window\*(R" on the original string. In some cases this couldcause surprising action at distance or other undefined behaviour. Now thelength of the window adjusts itself to the length of the string assigned toit..ie n .Sh "The "":unique"" attribute is only meaningful for globals".el .Sh "The \f(CW:unique\fP attribute is only meaningful for globals".IX Subsection "The :unique attribute is only meaningful for globals"Now applying \f(CW\*(C`:unique\*(C'\fR to lexical variables and to subroutines willresult in a compilation error..SH "Core Enhancements".IX Header "Core Enhancements".ie n .Sh "Lexical $_".el .Sh "Lexical \f(CW$_\fP".IX Subsection "Lexical $_"The default variable \f(CW$_\fR can now be lexicalized, by declaring it likeany other lexical variable, with a simple.PP.Vb 1\& my $_;.Ve.PPThe operations that default on \f(CW$_\fR will use the lexically-scopedversion of \f(CW$_\fR when it exists, instead of the global \f(CW$_\fR..PPIn a \f(CW\*(C`map\*(C'\fR or a \f(CW\*(C`grep\*(C'\fR block, if \f(CW$_\fR was previously my'ed, then the\&\f(CW$_\fR inside the block is lexical as well (and scoped to the block)..PPIn a scope where \f(CW$_\fR has been lexicalized, you can still have access tothe global version of \f(CW$_\fR by using \f(CW$::_\fR, or, more simply, byoverriding the lexical declaration with \f(CW\*(C`our $_\*(C'\fR..Sh "Tied hashes in scalar context".IX Subsection "Tied hashes in scalar context"As of perl 5.8.2/5.9.0, tied hashes did not return anything useful inscalar context, for example when used as boolean tests:.PP.Vb 1\& if (%tied_hash) { ... }.Ve.PPThe old nonsensical behaviour was always to return false,regardless of whether the hash is empty or has elements..PPThere is now an interface for the implementors of tied hashes to implementthe behaviour of a hash in scalar context, via the \s-1SCALAR\s0 method (seeperltie). Without a \s-1SCALAR\s0 method, perl will try to guess whetherthe hash is empty, by testing if it's inside an iteration (in this caseit can't be empty) or by calling \s-1FIRSTKEY\s0..Sh "Formats".IX Subsection "Formats"Formats were improved in several ways. A new field, \f(CW\*(C`^*\*(C'\fR, can be used forvariable-width, one-line-at-a-time text. Null characters are now handledcorrectly in picture lines. Using \f(CW\*(C`@#\*(C'\fR and \f(CW\*(C`~~\*(C'\fR together will nowproduce a compile-time error, as those format fields are incompatible.perlform has been improved, and miscellaneous bugs fixed..Sh "Stacked filetest operators".IX Subsection "Stacked filetest operators"As a new form of syntactic sugar, it's now possible to stack up filetestoperators. You can now write \f(CW\*(C`\-f \-w \-x $file\*(C'\fR in a row to mean\&\f(CW\*(C`\-x $file && \-w _ && \-f _\*(C'\fR. See \*(L"\-X\*(R" in perlfunc..SH "Modules and Pragmata".IX Header "Modules and Pragmata".IP "Benchmark" 4.IX Item "Benchmark"In \f(CW\*(C`Benchmark\*(C'\fR, \fIcmpthese()\fR and \fItimestr()\fR now use the time statistics ofchildren instead of parent when the selected style is 'nop'..IP "Carp" 4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -