.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" Standard preamble: .\" ======================================================================== .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 (.SS), 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 "PERL5112DELTA 1" .TH PERL5112DELTA 1 "2011-09-26" "perl v5.14.2" "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" perl5112delta \- what is new for perl v5.11.2 .SH "DESCRIPTION" .IX Header "DESCRIPTION" This document describes differences between the 5.11.1 release and the 5.11.2 release. .SH "Core Enhancements" .IX Header "Core Enhancements" .SS "qr overloading" .IX Subsection "qr overloading" It is now possible to overload the \f(CW\*(C`qr//\*(C'\fR operator, that is, conversion to regexp, like it was already possible to overload conversion to boolean, string or number of objects. It is invoked when an object appears on the right hand side of the \f(CW\*(C`=~\*(C'\fR operator, or when it is interpolated into a regexp. See overload. .SS "Pluggable keywords" .IX Subsection "Pluggable keywords" Extension modules can now cleanly hook into the Perl parser to define new kinds of keyword-headed expression and compound statement. The syntax following the keyword is defined entirely by the extension. This allow a completely non-Perl sublanguage to be parsed inline, with the right ops cleanly generated. This feature is currently considered experimental. .PP See \*(L"PL_keyword_plugin\*(R" in perlapi for the mechanism. The Perl core source distribution also includes a new module XS::APItest::KeywordRPN, which implements reverse Polish notation arithmetic via pluggable keywords. This module is mainly used for test purposes, and is not normally installed, but also serves as an example of how to use the new mechanism. .SS "APIs for more internals" .IX Subsection "APIs for more internals" The lowest layers of the lexer and parts of the pad system now have C APIs available to \s-1XS\s0 extensions. These are necessary to support proper use of pluggable keywords, but have other uses too. The new APIs are experimental, and only cover a small proportion of what would be necessary to take full advantage of the core's facilities in these areas. It is intended that the Perl 5.13 development cycle will see the addition of a full range of clean, supported interfaces. .SS "Overridable function lookup" .IX Subsection "Overridable function lookup" Where an extension module hooks the creation of rv2cv ops to modify the subroutine lookup process, this now works correctly for bareword subroutine calls. This means that prototypes on subroutines referenced this way will be processed correctly. (Previously bareword subroutine names were initially looked up, for parsing purposes, by an unhookable mechanism, so extensions could only properly influence subroutine names that appeared with an \f(CW\*(C`&\*(C'\fR sigil.) .SH "Modules and Pragmata" .IX Header "Modules and Pragmata" .SS "New Modules and Pragmata" .IX Subsection "New Modules and Pragmata" .ie n .IP """legacy""" 4 .el .IP "\f(CWlegacy\fR" 4 .IX Item "legacy" Preserves legacy behaviors or enable new non-default behaviors. Currently the only behaviour concerns semantics for the 128 characters on \s-1ASCII\s0 systems that have the 8th bit set. .SS "Pragmata Changes" .IX Subsection "Pragmata Changes" .ie n .IP """diagnostics""" 4 .el .IP "\f(CWdiagnostics\fR" 4 .IX Item "diagnostics" Supports %.0f formatting internally. .ie n .IP """overload""" 4 .el .IP "\f(CWoverload\fR" 4 .IX Item "overload" Allow overloading of 'qr'. .SS "Updated Modules" .IX Subsection "Updated Modules" .ie n .IP """B::Concise""" 4 .el .IP "\f(CWB::Concise\fR" 4 .IX Item "B::Concise" Optimize reversing an array in-place, avoid using defined \f(CW%hash\fR in core code and tests. .ie n .IP """B::Deparse""" 4 .el .IP "\f(CWB::Deparse\fR" 4 .IX Item "B::Deparse" Teach B::Deparse about in-place reverse. .ie n .IP """Carp""" 4 .el .IP "\f(CWCarp\fR" 4 .IX Item "Carp" Refine Carp \fIcaller()\fR fix and add tests. .ie n .IP """Compress::Zlib""" 4 .el .IP "\f(CWCompress::Zlib\fR" 4 .IX Item "Compress::Zlib" Updated to 2.022. .ie n .IP """CPANPLUS""" 4 .el .IP "\f(CWCPANPLUS\fR" 4 .IX Item "CPANPLUS" Updated to 0.89_09. .ie n .IP """Encode""" 4 .el .IP "\f(CWEncode\fR" 4 .IX Item "Encode" Updated to 2.38. .ie n .IP """ExtUtils::CBuilder""" 4 .el .IP "\f(CWExtUtils::CBuilder\fR" 4 .IX Item "ExtUtils::CBuilder" Updated to 0.27. .ie n .IP """Env""" 4 .el .IP "\f(CWEnv\fR" 4 .IX Item "Env" Add \s-1EXISTS\s0 and \s-1DELETE\s0 methods to Env.pm. .ie n .IP """File::Fetch""" 4 .el .IP "\f(CWFile::Fetch\fR" 4 .IX Item "File::Fetch" Updated to 0.22. .ie n .IP """I8N::Langinfo""" 4 .el .IP "\f(CWI8N::Langinfo\fR" 4 .IX Item "I8N::Langinfo" Correctly document export of I18N::Langinfo. .ie n .IP """I8N::LangTags""" 4 .el .IP "\f(CWI8N::LangTags\fR" 4 .IX Item "I8N::LangTags" In I18N::LangTags::Detect, avoid using defined \f(CW@array\fR and defined \&\f(CW%hash\fR. .ie n .IP """IO::Compress""" 4 .el .IP "\f(CWIO::Compress\fR" 4 .IX Item "IO::Compress" Updated to 2.022. .ie n .IP """IPC::Cmd""" 4 .el .IP "\f(CWIPC::Cmd\fR" 4 .IX Item "IPC::Cmd" Updated to 0.54. .ie n .IP """List::Util""" 4 .el .IP "\f(CWList::Util\fR" 4 .IX Item "List::Util" Updated to 1.22. .ie n .IP """Locale::Maketext""" 4 .el .IP "\f(CWLocale::Maketext\fR" 4 .IX Item "Locale::Maketext" In Locale::Maketext, avoid using defined \f(CW@array\fR and defined \f(CW%hash\fR. Convert the odd Locale::Maketext test out from Test to Test::More. .ie n .IP """Module::Build""" 4 .el .IP "\f(CWModule::Build\fR" 4 .IX Item "Module::Build" Updated to 0.35_08. .ie n .IP """Module::CoreList""" 4 .el .IP "\f(CWModule::CoreList\fR" 4 .IX Item "Module::CoreList" Implemented \fIis_deprecated()\fR. .ie n .IP """Pod::Simple""" 4 .el .IP "\f(CWPod::Simple\fR" 4 .IX Item "Pod::Simple" Updated to 3.10. .ie n .IP """Scalar::Util""" 4 .el .IP "\f(CWScalar::Util\fR" 4 .IX Item "Scalar::Util" Updated to 1.22. .ie n .IP """Switch""" 4 .el .IP "\f(CWSwitch\fR" 4 .IX Item "Switch" Updated to 2.16. .SH "Utility Changes" .IX Header "Utility Changes" .IP "\fIa2p\fR" 4 .IX Item "a2p" Fixed bugs with the \fImatch()\fR operator in list context, remove mention of $[. .SH "Performance Enhancements" .IX Header "Performance Enhancements" .IP "\(bu" 4 Reversing an array to itself (as in \f(CW\*(C`@a = reverse @a\*(C'\fR) in void context now happens in-place and is several orders of magnitude faster than it used to be. It will also preserve non-existent elements whenever possible, i.e. for non magical arrays or tied arrays with \f(CW\*(C`EXISTS\*(C'\fR and \&\f(CW\*(C`DELETE\*(C'\fR methods. .SH "New or Changed Diagnostics" .IX Header "New or Changed Diagnostics" Several new diagnostics, see perldiag for details. .ie n .IP """Bad plugin affecting keyword \*(Aq%s\*(Aq""" 4 .el .IP "\f(CWBad plugin affecting keyword \*(Aq%s\*(Aq\fR" 4 .IX Item "Bad plugin affecting keyword %s" .PD 0 .ie n .IP """gmtime(%.0f) too large""" 4 .el .IP "\f(CWgmtime(%.0f) too large\fR" 4 .IX Item "gmtime(%.0f) too large" .ie n .IP """Lexing code attempted to stuff non\-Latin\-1 character into Latin\-1 input""" 4 .el .IP "\f(CWLexing code attempted to stuff non\-Latin\-1 character into Latin\-1 input\fR" 4 .IX Item "Lexing code attempted to stuff non-Latin-1 character into Latin-1 input" .ie n .IP """Lexing code internal error (%s)""" 4 .el .IP "\f(CWLexing code internal error (%s)\fR" 4 .IX Item "Lexing code internal error (%s)" .ie n .IP """localtime(%.0f) too large""" 4 .el .IP "\f(CWlocaltime(%.0f) too large\fR" 4 .IX Item "localtime(%.0f) too large" .ie n .IP """Overloaded dereference did not return a reference""" 4 .el .IP "\f(CWOverloaded dereference did not return a reference\fR" 4 .IX Item "Overloaded dereference did not return a reference" .ie n .IP """Overloaded qr did not return a REGEXP""" 4 .el .IP "\f(CWOverloaded qr did not return a REGEXP\fR" 4 .IX Item "Overloaded qr did not return a REGEXP" .ie n .IP """Perl_pmflag() is deprecated, and will be removed from the XS API""" 4 .el .IP "\f(CWPerl_pmflag() is deprecated, and will be removed from the XS API\fR" 4 .IX Item "Perl_pmflag() is deprecated, and will be removed from the XS API" .PD .PP One diagnostic has been removed: .ie n .IP """Runaway format""" 4 .el .IP "\f(CWRunaway format\fR" 4 .IX Item "Runaway format" .SH "Changed Internals" .IX Header "Changed Internals" .PD 0 .IP "\(bu" 4 .PD \&\f(CW\*(C`Perl_pmflag\*(C'\fR has been removed from the public \s-1API\s0. Calling it now generates a deprecation warning, and it will be removed in a future release. Although listed as part of the \s-1API\s0, it was never documented, and only ever used in \fItoke.c\fR, and prior to 5.10, \fIregcomp.c\fR. In core, it has been replaced by a static function. .SH "New Tests" .IX Header "New Tests" .IP "\fIt/op/while_readdir.t\fR" 4 .IX Item "t/op/while_readdir.t" Test that a bare readdir in while loop sets \f(CW$_\fR. .SH "Known Problems" .IX Header "Known Problems" .IP "Known test failures on \s-1VMS\s0" 4 .IX Item "Known test failures on VMS" Perl 5.11.2 fails a small set of core and \s-1CPAN\s0 tests as of this release. With luck, that'll be sorted out for 5.11.3. .SH "Deprecations" .IX Header "Deprecations" The following items are now deprecated. .ie n .SS "Use of "":="" to mean an empty attribute list is now deprecated." .el .SS "Use of \f(CW:=\fP to mean an empty attribute list is now deprecated." .IX Subsection "Use of := to mean an empty attribute list is now deprecated." An accident of Perl's parser meant that these constructions were all equivalent: .PP .Vb 3 \& my $pi := 4; \& my $pi : = 4; \& my $pi : = 4; .Ve .PP with the \f(CW\*(C`:\*(C'\fR being treated as the start of an attribute list, which ends before the \f(CW\*(C`=\*(C'\fR. As whitespace is not significant here, all are parsed as an empty attribute list, hence all the above are equivalent to, and better written as .PP .Vb 1 \& my $pi = 4; .Ve .PP because no attribute processing is done for an empty list. .PP As is, this meant that \f(CW\*(C`:=\*(C'\fR cannot be used as a new token, without silently changing the meaning of existing code. Hence that particular form is now deprecated, and will become a syntax error. If it is absolutely necessary to have empty attribute lists (for example, because of a code generator) then avoid the warning by adding a space before the \f(CW\*(C`=\*(C'\fR. .SH "Acknowledgements" .IX Header "Acknowledgements" Perl 5.11.2 represents approximately 3 weeks development since Perl 5.11.1 and contains 29,992 lines of changes across 458 files from 38 authors and committers: .PP Abhijit Menon-Sen, Abigail, Ben Morrow, Bo Borgerson, Brad Gilbert, Bram, Chris Williams, Craig A. Berry, Daniel Frederick Crisman, Dave Rolsky, David E. Wheeler, David Golden, Eric Brine, Father Chrysostomos, Frank Wiegand, Gerard Goossen, Gisle Aas, Graham Barr, Harmen, H.Merijn Brand, Jan Dubois, Jerry D. Hedden, Jesse Vincent, Karl Williamson, Kevin Ryde, Leon Brocard, Nicholas Clark, Paul Marquess, Philippe Bruhat, Rafael Garcia-Suarez, Sisyphus, Steffen Mueller, Steve Hay, Steve Peters, Vincent Pit, Yuval Kogman, Yves Orton, and Zefram. .PP Many of the changes included in this version originated in the \s-1CPAN\s0 modules included in Perl's core. We're grateful to the entire \s-1CPAN\s0 community for helping Perl to flourish. .SH "Reporting Bugs" .IX Header "Reporting Bugs" If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at http://rt.perl.org/perlbug/ . There may also be information at http://www.perl.org/ , the Perl Home Page. .PP If you believe you have an unreported bug, please run the \fBperlbug\fR program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR, will be sent off to perlbug@perl.org to be analysed by the Perl porting team. .PP If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5\-security\-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all the core committers, who be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on \s-1CPAN\s0. .SH "SEE ALSO" .IX Header "SEE ALSO" The \fIChanges\fR file for an explanation of how to view exhaustive details on what changed. .PP The \fI\s-1INSTALL\s0\fR file for how to build Perl. .PP The \fI\s-1README\s0\fR file for general stuff. .PP The \fIArtistic\fR and \fICopying\fR files for copyright information.