.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" 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" '' . ds C` . ds C' '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 >0, 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. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "PERL5252DELTA 1" .TH PERL5252DELTA 1 "2017-05-20" "perl v5.26.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" perl5252delta \- what is new for perl v5.25.2 .SH "DESCRIPTION" .IX Header "DESCRIPTION" This document describes differences between the 5.25.1 release and the 5.25.2 release. .PP If you are upgrading from an earlier release such as 5.25.0, first read perl5251delta, which describes differences between 5.25.0 and 5.25.1. .SH "Core Enhancements" .IX Header "Core Enhancements" .SS "Perl can now do default collation in \s-1UTF\-8\s0 locales on platforms that support it" .IX Subsection "Perl can now do default collation in UTF-8 locales on platforms that support it" Some platforms natively do a reasonable job of collating and sorting in \&\s-1UTF\-8\s0 locales. Perl now works with those. For portability and full control, Unicode::Collate is still recommended, but now you may not need to do anything special to get good-enough results, depending on your application. See "Category \f(CW\*(C`LC_COLLATE\*(C'\fR: Collation: Text Comparisons and Sorting" in perllocale. .ie n .SS "Better locale collation of strings containing embedded ""NUL"" characters" .el .SS "Better locale collation of strings containing embedded \f(CWNUL\fP characters" .IX Subsection "Better locale collation of strings containing embedded NUL characters" In locales that have multi-level character weights, these are now ignored at the higher priority ones. There are still some gotchas in some strings, though. See "Collation of strings containing embedded \f(CW\*(C`NUL\*(C'\fR characters" in perllocale. .SS "Lexical subroutines are no longer experimental" .IX Subsection "Lexical subroutines are no longer experimental" Using the \f(CW\*(C`lexical_subs\*(C'\fR feature no longer emits a warning. Existing code that disables the \f(CW\*(C`experimental::lexical_subs\*(C'\fR warning category that the feature previously used will continue to work. The \f(CW\*(C`lexical_subs\*(C'\fR feature has no effect; all Perl code can use lexical subroutines, regardless of what feature declarations are in scope. .ie n .SS """CORE"" subroutines for hash and array functions callable via reference" .el .SS "\f(CWCORE\fP subroutines for hash and array functions callable via reference" .IX Subsection "CORE subroutines for hash and array functions callable via reference" The hash and array functions in the \f(CW\*(C`CORE\*(C'\fR namespace\*(--\f(CW\*(C`keys\*(C'\fR, \f(CW\*(C`each\*(C'\fR, \&\f(CW\*(C`values\*(C'\fR, \f(CW\*(C`push\*(C'\fR, \f(CW\*(C`pop\*(C'\fR, \f(CW\*(C`shift\*(C'\fR, \f(CW\*(C`unshift\*(C'\fR and \f(CW\*(C`splice\*(C'\fR\-\-, can now be called with ampersand syntax (\f(CW\*(C`&CORE::keys(\e%hash\*(C'\fR) and via reference (\f(CW\*(C`my $k = \e&CORE::keys; $k\->(\e%hash)\*(C'\fR). Previously they could only be used when inlined. .SH "Security" .IX Header "Security" .ie n .SS """\-Di"" switch is now required for PerlIO debugging output" .el .SS "\f(CW\-Di\fP switch is now required for PerlIO debugging output" .IX Subsection "-Di switch is now required for PerlIO debugging output" Previously PerlIO debugging output would be sent to the file specified by the \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable if perl wasn't running setuid and the \f(CW\*(C`\-T\*(C'\fR or \f(CW\*(C`\-t\*(C'\fR switches hadn't been parsed yet. .PP If perl performed output at a point where it hadn't yet parsed its switches this could result in perl creating or overwriting the file named by \f(CW\*(C`PERLIO_DEBUG\*(C'\fR even when the \f(CW\*(C`\-T\*(C'\fR switch had been supplied. .PP Perl now requires the \f(CW\*(C`\-Di\*(C'\fR switch to produce PerlIO debugging output. By default this is written to \f(CW\*(C`stderr\*(C'\fR, but can optionally be redirected to a file by setting the \f(CW\*(C`PERLIO_DEBUG\*(C'\fR environment variable. .PP If perl is running setuid or the \f(CW\*(C`\-T\*(C'\fR switch has supplied \&\f(CW\*(C`PERLIO_DEBUG\*(C'\fR is ignored and the debugging output is sent to \&\f(CW\*(C`stderr\*(C'\fR as for any other \f(CW\*(C`\-D\*(C'\fR switch. .SH "Incompatible Changes" .IX Header "Incompatible Changes" .ie n .SS """keys"" returned from an lvalue subroutine" .el .SS "\f(CWkeys\fP returned from an lvalue subroutine" .IX Subsection "keys returned from an lvalue subroutine" \&\f(CW\*(C`keys\*(C'\fR returned from an lvalue subroutine can no longer be assigned to in list context. .PP .Vb 4 \& sub foo : lvalue { keys(%INC) } \& (foo) = 3; # death \& sub bar : lvalue { keys(@_) } \& (bar) = 3; # also an error .Ve .PP This makes the lvalue sub case consistent with \f(CW\*(C`(keys %hash) = ...\*(C'\fR and \&\f(CW\*(C`(keys @_) = ...\*(C'\fR, which are also errors. [perl #128187] .SH "Modules and Pragmata" .IX Header "Modules and Pragmata" .SS "Updated Modules and Pragmata" .IX Subsection "Updated Modules and Pragmata" .IP "\(bu" 4 \&\s-1CPAN\s0 has been upgraded from version 2.11 to 2.14. .IP "\(bu" 4 Devel::Peek has been upgraded from version 1.23 to 1.24. .IP "\(bu" 4 diagnostics has been upgraded from version 1.34 to 1.35. .IP "\(bu" 4 DynaLoader has been upgraded from version 1.38 to 1.39. .IP "\(bu" 4 ExtUtils::MakeMaker has been upgraded from version 7.10_01 to 7.18. .IP "\(bu" 4 ExtUtils::Miniperl has been upgraded from version 1.05 to 1.06. .IP "\(bu" 4 ExtUtils::ParseXS has been upgraded from version 3.31 to 3.32. .IP "\(bu" 4 ExtUtils::Typemaps has been upgraded from version 3.31 to 3.32. .IP "\(bu" 4 feature has been upgraded from version 1.43 to 1.44. .IP "\(bu" 4 File::Copy has been upgraded from version 2.31 to 2.32. .IP "\(bu" 4 File::Glob has been upgraded from version 1.26 to 1.27. .IP "\(bu" 4 File::Spec has been upgraded from version 3.63 to 3.64. .IP "\(bu" 4 FileHandle has been upgraded from version 2.02 to 2.03. .IP "\(bu" 4 Getopt::Long has been upgraded from version 2.48 to 2.49. .IP "\(bu" 4 HTTP::Tiny has been upgraded from version 0.056 to 0.058. .IP "\(bu" 4 \&\s-1JSON::PP\s0 has been upgraded from version 2.27300 to 2.27400. .IP "\(bu" 4 Locale::Codes has been upgraded from version 3.38 to 3.39. .IP "\(bu" 4 Module::CoreList has been upgraded from 5.20160520 to 5.20160620. .IP "\(bu" 4 Opcode has been upgraded from version 1.34 to 1.35. .IP "\(bu" 4 Pod::Checker has been upgraded from version 1.60 to 1.73. .IP "\(bu" 4 Pod::Functions has been upgraded from version 1.10 to 1.11. .IP "\(bu" 4 Pod::Usage has been upgraded from version 1.68 to 1.69. .IP "\(bu" 4 \&\s-1POSIX\s0 has been upgraded from version 1.69 to 1.70. .IP "\(bu" 4 Test::Simple has been upgraded from version 1.302015 to 1.302026. .IP "\(bu" 4 Thread::Queue has been upgraded from version 3.09 to 3.11. .IP "\(bu" 4 threads has been upgraded from version 2.08 to 2.09. .IP "\(bu" 4 Time::HiRes has been upgraded from version 1.9733 to 1.9734. .IP "\(bu" 4 Unicode::UCD has been upgraded from version 0.64 to 0.65. .IP "\(bu" 4 VMS::DCLsym has been upgraded from version 1.06 to 1.07. .SH "Documentation" .IX Header "Documentation" .SS "Changes to Existing Documentation" .IX Subsection "Changes to Existing Documentation" \fIperlcommunity\fR .IX Subsection "perlcommunity" .IP "\(bu" 4 All references to Usenet have been removed. .PP \fIperldelta\fR .IX Subsection "perldelta" .IP "\(bu" 4 All references to Usenet have been removed. .PP \fIperllocale\fR .IX Subsection "perllocale" .IP "\(bu" 4 Document \s-1NUL\s0 collation handling. .PP \fIperlmodinstall\fR .IX Subsection "perlmodinstall" .IP "\(bu" 4 All references to Usenet have been removed. .PP \fIperlmodlib\fR .IX Subsection "perlmodlib" .IP "\(bu" 4 Updated the mirror list. .IP "\(bu" 4 All references to Usenet have been removed. .PP \fIperlnewmod\fR .IX Subsection "perlnewmod" .IP "\(bu" 4 All references to Usenet have been removed. .SH "Diagnostics" .IX Header "Diagnostics" The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see perldiag. .SS "New Diagnostics" .IX Subsection "New Diagnostics" \fINew Errors\fR .IX Subsection "New Errors" .IP "\(bu" 4 Version control conflict marker .Sp (F) The parser found a line starting with \f(CW\*(C`<<<<<<<\*(C'\fR, \&\f(CW\*(C`>>>>>>>\*(C'\fR, or \f(CW\*(C`=======\*(C'\fR. These may be left by a version control system to mark conflicts after a failed merge operation. .IP "\(bu" 4 \&\f(CW%s:\fR command not found .Sp (A) You've accidentally run your script through \fBbash\fR or another shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself. The #! line at the top of your file could look like: .Sp .Vb 1 \& #!/usr/bin/perl .Ve .IP "\(bu" 4 \&\f(CW%s:\fR command not found: \f(CW%s\fR .Sp (A) You've accidentally run your script through \fBzsh\fR or another shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself. The #! line at the top of your file could look like: .Sp .Vb 1 \& #!/usr/bin/perl .Ve .IP "\(bu" 4 Unescaped left brace in regex is deprecated here, passed through in regex; marked by <\-\- \s-1HERE\s0 in m/%s/ .Sp Unescaped left braces are already illegal in some contexts in regular expression patterns, but, due to an oversight, no deprecation warning was raised in other contexts where they are intended to become illegal. This warning is now raised in these contexts. .SS "Changes to Existing Diagnostics" .IX Subsection "Changes to Existing Diagnostics" .IP "\(bu" 4 Unescaped left brace in regex is illegal here in regex; marked by <\-\- \s-1HERE\s0 in m/%s/ .Sp The word \*(L"here\*(R" has been added to the message that was raised in v5.25.1. This is to indicate that there are contexts in which unescaped left braces are not (yet) illegal. .SH "Configuration and Compilation" .IX Header "Configuration and Compilation" .IP "\(bu" 4 \&\fImake_ext.pl\fR no longer updates a module's \fIpm_to_blib\fR file when no files require updates. This could cause dependencies, \fIperlmain.c\fR in particular, to be rebuilt unnecessarily. [perl #126710] .IP "\(bu" 4 The output of \f(CW\*(C`perl \-V\*(C'\fR has been reformatted so that each configuration and compile-time option is now listed one per line, to improve readability. .SH "Testing" .IX Header "Testing" .IP "\(bu" 4 \&\fIt/harness\fR now tries really hard not to run tests outside of the Perl source tree. [perl #124050] .SH "Internal Changes" .IX Header "Internal Changes" .IP "\(bu" 4 Perl no longer panics when switching into some locales on machines with buggy \f(CW\*(C`strxfrm()\*(C'\fR implementations in their libc. [perl #121734] .SH "Selected Bug Fixes" .IX Header "Selected Bug Fixes" .IP "\(bu" 4 \&\f(CW\*(C` until ($x = 1) { ... } \*(C'\fR and \f(CW\*(C` ... until $x = 1 \*(C'\fR now properly warn when syntax warnings are enabled. [perl #127333] .IP "\(bu" 4 \&\fIsocket()\fR now leaves the error code returned by the system in \f(CW$!\fR on failure. [perl #128316] .IP "\(bu" 4 Assignment variants of any bitwise ops under the \f(CW\*(C`bitwise\*(C'\fR feature would crash if the left-hand side was an array or hash. [perl #128204] .IP "\(bu" 4 \&\f(CW\*(C`require\*(C'\fR followed by a single colon (as in \f(CW\*(C`foo() ? require : ...\*(C'\fR is now parsed correctly as \f(CW\*(C`require\*(C'\fR with implicit \f(CW$_\fR, rather than \&\f(CW\*(C`require ""\*(C'\fR. [perl #128307] .IP "\(bu" 4 Scalar \f(CW\*(C`keys %hash\*(C'\fR can now be assigned to consistently in all scalar lvalue contexts. Previously it worked for some contexts but not others. .IP "\(bu" 4 List assignment to \f(CW\*(C`vec\*(C'\fR or \f(CW\*(C`substr\*(C'\fR with an array or hash for its first argument used to result in crashes or \*(L"Can't coerce\*(R" error messages at run time, unlike scalar assignment, which would give an error at compile time. List assignment now gives a compile-time error, too. [perl #128260] .SH "Acknowledgements" .IX Header "Acknowledgements" Perl 5.25.2 represents approximately 4 weeks of development since Perl 5.25.1 and contains approximately 32,000 lines of changes across 430 files from 28 authors. .PP Excluding auto-generated files, documentation and release tools, there were approximately 27,000 lines of changes to 300 .pm, .t, .c and .h files. .PP Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.25.2: .PP Aaron Crane, Andreas König, Andy Lester, Chad Granum, Chase Whitener, Chris \&'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Collins, David Mitchell, Dominic Hargreaves, Ed Avis, Father Chrysostomos, H.Merijn Brand, Ivan Pozdeev, James E Keenan, Jarkko Hietaniemi, Jerry D. Hedden, Jim Cromie, Karl Williamson, Lukas Mai, Matthew Horsfall, Misty De Meo, Samuel Thibault, Sawyer X, Sullivan Beck, Tony Cook, Yves Orton. .PP The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker. .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. .PP For a more complete list of all of Perl's historical contributors, please see the \fI\s-1AUTHORS\s0\fR file in the Perl source distribution. .SH "Reporting Bugs" .IX Header "Reporting Bugs" If you find what you think is a bug, you might check the perl bug database at . There may also be information at , the Perl Home Page. .PP If you believe you have an unreported bug, please run the perlbug 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 see \&\*(L"\s-1SECURITY VULNERABILITY CONTACT INFORMATION\*(R"\s0 in perlsec for details of how to report the issue. .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.