| 1 |
.\" -*- mode: troff; coding: utf-8 -*- |
| 2 |
.\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) |
| 3 |
.\" |
| 4 |
.\" Standard preamble: |
| 5 |
.\" ======================================================================== |
| 6 |
.de Sp \" Vertical space (when we can't use .PP) |
| 7 |
.if t .sp .5v |
| 8 |
.if n .sp |
| 9 |
.. |
| 10 |
.de Vb \" Begin verbatim text |
| 11 |
.ft CW |
| 12 |
.nf |
| 13 |
.ne \\$1 |
| 14 |
.. |
| 15 |
.de Ve \" End verbatim text |
| 16 |
.ft R |
| 17 |
.fi |
| 18 |
.. |
| 19 |
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. |
| 20 |
.ie n \{\ |
| 21 |
. ds C` "" |
| 22 |
. ds C' "" |
| 23 |
'br\} |
| 24 |
.el\{\ |
| 25 |
. ds C` |
| 26 |
. ds C' |
| 27 |
'br\} |
| 28 |
.\" |
| 29 |
.\" Escape single quotes in literal strings from groff's Unicode transform. |
| 30 |
.ie \n(.g .ds Aq \(aq |
| 31 |
.el .ds Aq ' |
| 32 |
.\" |
| 33 |
.\" If the F register is >0, we'll generate index entries on stderr for |
| 34 |
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index |
| 35 |
.\" entries marked with X<> in POD. Of course, you'll have to process the |
| 36 |
.\" output yourself in some meaningful fashion. |
| 37 |
.\" |
| 38 |
.\" Avoid warning from groff about undefined register 'F'. |
| 39 |
.de IX |
| 40 |
.. |
| 41 |
.nr rF 0 |
| 42 |
.if \n(.g .if rF .nr rF 1 |
| 43 |
.if (\n(rF:(\n(.g==0)) \{\ |
| 44 |
. if \nF \{\ |
| 45 |
. de IX |
| 46 |
. tm Index:\\$1\t\\n%\t"\\$2" |
| 47 |
.. |
| 48 |
. if !\nF==2 \{\ |
| 49 |
. nr % 0 |
| 50 |
. nr F 2 |
| 51 |
. \} |
| 52 |
. \} |
| 53 |
.\} |
| 54 |
.rr rF |
| 55 |
.\" ======================================================================== |
| 56 |
.\" |
| 57 |
.IX Title "PERL5201DELTA 1" |
| 58 |
.TH PERL5201DELTA 1 2025-11-16 "perl v5.40.1" "Perl Programmers Reference Guide" |
| 59 |
.\" For nroff, turn off justification. Always turn off hyphenation; it makes |
| 60 |
.\" way too many mistakes in technical documents. |
| 61 |
.if n .ad l |
| 62 |
.nh |
| 63 |
.SH NAME |
| 64 |
perl5201delta \- what is new for perl v5.20.1 |
| 65 |
.SH DESCRIPTION |
| 66 |
.IX Header "DESCRIPTION" |
| 67 |
This document describes differences between the 5.20.0 release and the 5.20.1 |
| 68 |
release. |
| 69 |
.PP |
| 70 |
If you are upgrading from an earlier release such as 5.18.0, first read |
| 71 |
perl5200delta, which describes differences between 5.18.0 and 5.20.0. |
| 72 |
.SH "Incompatible Changes" |
| 73 |
.IX Header "Incompatible Changes" |
| 74 |
There are no changes intentionally incompatible with 5.20.0. If any exist, |
| 75 |
they are bugs, and we request that you submit a report. See "Reporting Bugs" |
| 76 |
below. |
| 77 |
.SH "Performance Enhancements" |
| 78 |
.IX Header "Performance Enhancements" |
| 79 |
.IP \(bu 4 |
| 80 |
An optimization to avoid problems with COW and deliberately overallocated PVs |
| 81 |
has been disabled because it interfered with another, more important, |
| 82 |
optimization, causing a slowdown on some platforms. |
| 83 |
[GH #13878] <https://github.com/Perl/perl5/issues/13878> |
| 84 |
.IP \(bu 4 |
| 85 |
Returning a string from a lexical variable could be slow in some cases. This |
| 86 |
has now been fixed. |
| 87 |
[GH #13880] <https://github.com/Perl/perl5/issues/13880> |
| 88 |
.SH "Modules and Pragmata" |
| 89 |
.IX Header "Modules and Pragmata" |
| 90 |
.SS "Updated Modules and Pragmata" |
| 91 |
.IX Subsection "Updated Modules and Pragmata" |
| 92 |
.IP \(bu 4 |
| 93 |
Config::Perl::V has been upgraded from version 0.20 to 0.22. |
| 94 |
.Sp |
| 95 |
The list of Perl versions covered has been updated and some flaws in the |
| 96 |
parsing have been fixed. |
| 97 |
.IP \(bu 4 |
| 98 |
Exporter has been upgraded from version 5.70 to 5.71. |
| 99 |
.Sp |
| 100 |
Illegal POD syntax in the documentation has been corrected. |
| 101 |
.IP \(bu 4 |
| 102 |
ExtUtils::CBuilder has been upgraded from version 0.280216 to 0.280217. |
| 103 |
.Sp |
| 104 |
Android builds now link to both \fB\-lperl\fR and \f(CW$Config::Config{perllibs}\fR. |
| 105 |
.IP \(bu 4 |
| 106 |
File::Copy has been upgraded from version 2.29 to 2.30. |
| 107 |
.Sp |
| 108 |
The documentation now notes that \f(CW\*(C`copy\*(C'\fR will not overwrite read-only files. |
| 109 |
.IP \(bu 4 |
| 110 |
Module::CoreList has been upgraded from version 3.11 to 5.020001. |
| 111 |
.Sp |
| 112 |
The list of Perl versions covered has been updated. |
| 113 |
.IP \(bu 4 |
| 114 |
The PathTools module collection has been upgraded from version 3.47 to 3.48. |
| 115 |
.Sp |
| 116 |
Fallbacks are now in place when cross-compiling for Android and |
| 117 |
\&\f(CW$Config::Config{sh}\fR is not yet defined. |
| 118 |
[GH #13872] <https://github.com/Perl/perl5/issues/13872> |
| 119 |
.IP \(bu 4 |
| 120 |
PerlIO::via has been upgraded from version 0.14 to 0.15. |
| 121 |
.Sp |
| 122 |
A minor portability improvement has been made to the XS implementation. |
| 123 |
.IP \(bu 4 |
| 124 |
Unicode::UCD has been upgraded from version 0.57 to 0.58. |
| 125 |
.Sp |
| 126 |
The documentation includes many clarifications and fixes. |
| 127 |
.IP \(bu 4 |
| 128 |
utf8 has been upgraded from version 1.13 to 1.13_01. |
| 129 |
.Sp |
| 130 |
The documentation has some minor formatting improvements. |
| 131 |
.IP \(bu 4 |
| 132 |
version has been upgraded from version 0.9908 to 0.9909. |
| 133 |
.Sp |
| 134 |
External libraries and Perl may have different ideas of what the locale is. |
| 135 |
This is problematic when parsing version strings if the locale's numeric |
| 136 |
separator has been changed. Version parsing has been patched to ensure it |
| 137 |
handles the locales correctly. |
| 138 |
[GH #13863] <https://github.com/Perl/perl5/issues/13863> |
| 139 |
.SH Documentation |
| 140 |
.IX Header "Documentation" |
| 141 |
.SS "Changes to Existing Documentation" |
| 142 |
.IX Subsection "Changes to Existing Documentation" |
| 143 |
\fIperlapi\fR |
| 144 |
.IX Subsection "perlapi" |
| 145 |
.IP \(bu 4 |
| 146 |
\&\f(CW\*(C`av_len\*(C'\fR \- Emphasize that this returns the highest index in the array, not the |
| 147 |
size of the array. |
| 148 |
[GH #13377] <https://github.com/Perl/perl5/issues/13377> |
| 149 |
.IP \(bu 4 |
| 150 |
Note that \f(CW\*(C`SvSetSV\*(C'\fR doesn't do set magic. |
| 151 |
.IP \(bu 4 |
| 152 |
\&\f(CW\*(C`sv_usepvn_flags\*(C'\fR \- Fix documentation to mention the use of \f(CW\*(C`NewX\*(C'\fR instead of |
| 153 |
\&\f(CW\*(C`malloc\*(C'\fR. |
| 154 |
[GH #13835] <https://github.com/Perl/perl5/issues/13835> |
| 155 |
.IP \(bu 4 |
| 156 |
Clarify where \f(CW\*(C`NUL\*(C'\fR may be embedded or is required to terminate a string. |
| 157 |
.PP |
| 158 |
\fIperlfunc\fR |
| 159 |
.IX Subsection "perlfunc" |
| 160 |
.IP \(bu 4 |
| 161 |
Clarify the meaning of \f(CW\*(C`\-B\*(C'\fR and \f(CW\*(C`\-T\*(C'\fR. |
| 162 |
.IP \(bu 4 |
| 163 |
\&\f(CW\*(C`\-l\*(C'\fR now notes that it will return false if symlinks aren't supported by the |
| 164 |
file system. |
| 165 |
[GH #13695] <https://github.com/Perl/perl5/issues/13695> |
| 166 |
.IP \(bu 4 |
| 167 |
Note that \f(CW\*(C`each\*(C'\fR, \f(CW\*(C`keys\*(C'\fR and \f(CW\*(C`values\*(C'\fR may produce different orderings for |
| 168 |
tied hashes compared to other perl hashes. |
| 169 |
[GH #13650] <https://github.com/Perl/perl5/issues/13650> |
| 170 |
.IP \(bu 4 |
| 171 |
Note that \f(CW\*(C`exec LIST\*(C'\fR and \f(CW\*(C`system LIST\*(C'\fR may fall back to the shell on Win32. |
| 172 |
Only \f(CW\*(C`exec PROGRAM LIST\*(C'\fR and \f(CW\*(C`system PROGRAM LIST\*(C'\fR indirect object syntax |
| 173 |
will reliably avoid using the shell. This has also been noted in perlport. |
| 174 |
[GH #13907] <https://github.com/Perl/perl5/issues/13907> |
| 175 |
.IP \(bu 4 |
| 176 |
Clarify the meaning of \f(CW\*(C`our\*(C'\fR. |
| 177 |
[GH #13938] <https://github.com/Perl/perl5/issues/13938> |
| 178 |
.PP |
| 179 |
\fIperlguts\fR |
| 180 |
.IX Subsection "perlguts" |
| 181 |
.IP \(bu 4 |
| 182 |
Explain various ways of modifying an existing SV's buffer. |
| 183 |
[GH #12813] <https://github.com/Perl/perl5/issues/12813> |
| 184 |
.PP |
| 185 |
\fIperlpolicy\fR |
| 186 |
.IX Subsection "perlpolicy" |
| 187 |
.IP \(bu 4 |
| 188 |
We now have a code of conduct for the \fIp5p\fR mailing list, as documented in |
| 189 |
"STANDARDS OF CONDUCT" in perlpolicy. |
| 190 |
.PP |
| 191 |
\fIperlre\fR |
| 192 |
.IX Subsection "perlre" |
| 193 |
.IP \(bu 4 |
| 194 |
The \f(CW\*(C`/x\*(C'\fR modifier has been clarified to note that comments cannot be continued |
| 195 |
onto the next line by escaping them. |
| 196 |
.PP |
| 197 |
\fIperlsyn\fR |
| 198 |
.IX Subsection "perlsyn" |
| 199 |
.IP \(bu 4 |
| 200 |
Mention the use of empty conditionals in \f(CW\*(C`for\*(C'\fR/\f(CW\*(C`while\*(C'\fR loops for infinite |
| 201 |
loops. |
| 202 |
.PP |
| 203 |
\fIperlxs\fR |
| 204 |
.IX Subsection "perlxs" |
| 205 |
.IP \(bu 4 |
| 206 |
Added a discussion of locale issues in XS code. |
| 207 |
.SH Diagnostics |
| 208 |
.IX Header "Diagnostics" |
| 209 |
The following additions or changes have been made to diagnostic output, |
| 210 |
including warnings and fatal error messages. For the complete list of |
| 211 |
diagnostic messages, see perldiag. |
| 212 |
.SS "Changes to Existing Diagnostics" |
| 213 |
.IX Subsection "Changes to Existing Diagnostics" |
| 214 |
.IP \(bu 4 |
| 215 |
Variable length lookbehind not implemented in regex m/%s/ |
| 216 |
.Sp |
| 217 |
Information about Unicode behaviour has been added. |
| 218 |
.SH "Configuration and Compilation" |
| 219 |
.IX Header "Configuration and Compilation" |
| 220 |
.IP \(bu 4 |
| 221 |
Building Perl no longer writes to the source tree when configured with |
| 222 |
\&\fIConfigure\fR's \fB\-Dmksymlinks\fR option. |
| 223 |
[GH #13712] <https://github.com/Perl/perl5/issues/13712> |
| 224 |
.SH "Platform Support" |
| 225 |
.IX Header "Platform Support" |
| 226 |
.SS "Platform-Specific Notes" |
| 227 |
.IX Subsection "Platform-Specific Notes" |
| 228 |
.IP Android 4 |
| 229 |
.IX Item "Android" |
| 230 |
Build support has been improved for cross-compiling in general and for Android |
| 231 |
in particular. |
| 232 |
.IP OpenBSD 4 |
| 233 |
.IX Item "OpenBSD" |
| 234 |
Corrected architectures and version numbers used in configuration hints when |
| 235 |
building Perl. |
| 236 |
.IP Solaris 4 |
| 237 |
.IX Item "Solaris" |
| 238 |
\&\fBc99\fR options have been cleaned up, hints look for \fBsolstudio\fR as well as |
| 239 |
\&\fBSUNWspro\fR, and support for native \f(CW\*(C`setenv\*(C'\fR has been added. |
| 240 |
.IP VMS 4 |
| 241 |
.IX Item "VMS" |
| 242 |
An old bug in feature checking, mainly affecting pre\-7.3 systems, has been |
| 243 |
fixed. |
| 244 |
.IP Windows 4 |
| 245 |
.IX Item "Windows" |
| 246 |
\&\f(CW%I64d\fR is now being used instead of \f(CW%lld\fR for MinGW. |
| 247 |
.SH "Internal Changes" |
| 248 |
.IX Header "Internal Changes" |
| 249 |
.IP \(bu 4 |
| 250 |
Added "sync_locale" in perlapi. |
| 251 |
Changing the program's locale should be avoided by XS code. Nevertheless, |
| 252 |
certain non-Perl libraries called from XS, such as \f(CW\*(C`Gtk\*(C'\fR do so. When this |
| 253 |
happens, Perl needs to be told that the locale has changed. Use this function |
| 254 |
to do so, before returning to Perl. |
| 255 |
.SH "Selected Bug Fixes" |
| 256 |
.IX Header "Selected Bug Fixes" |
| 257 |
.IP \(bu 4 |
| 258 |
A bug has been fixed where zero-length assertions and code blocks inside of a |
| 259 |
regex could cause \f(CW\*(C`pos\*(C'\fR to see an incorrect value. |
| 260 |
[GH #14016] <https://github.com/Perl/perl5/issues/14016> |
| 261 |
.IP \(bu 4 |
| 262 |
Using \f(CW\*(C`s///e\*(C'\fR on tainted utf8 strings could issue bogus "Malformed UTF\-8 |
| 263 |
character (unexpected end of string)" warnings. This has now been fixed. |
| 264 |
[GH #13948] <https://github.com/Perl/perl5/issues/13948> |
| 265 |
.IP \(bu 4 |
| 266 |
\&\f(CW\*(C`system\*(C'\fR and friends should now work properly on more Android builds. |
| 267 |
.Sp |
| 268 |
Due to an oversight, the value specified through \fB\-Dtargetsh\fR to \fIConfigure\fR |
| 269 |
would end up being ignored by some of the build process. This caused perls |
| 270 |
cross-compiled for Android to end up with defective versions of \f(CW\*(C`system\*(C'\fR, |
| 271 |
\&\f(CW\*(C`exec\*(C'\fR and backticks: the commands would end up looking for \fI/bin/sh\fR instead |
| 272 |
of \fI/system/bin/sh\fR, and so would fail for the vast majority of devices, |
| 273 |
leaving \f(CW$!\fR as \f(CW\*(C`ENOENT\*(C'\fR. |
| 274 |
.IP \(bu 4 |
| 275 |
Many issues have been detected by Coverity <http://www.coverity.com/> and |
| 276 |
fixed. |
| 277 |
.SH Acknowledgements |
| 278 |
.IX Header "Acknowledgements" |
| 279 |
Perl 5.20.1 represents approximately 4 months of development since Perl 5.20.0 |
| 280 |
and contains approximately 12,000 lines of changes across 170 files from 36 |
| 281 |
authors. |
| 282 |
.PP |
| 283 |
Excluding auto-generated files, documentation and release tools, there were |
| 284 |
approximately 2,600 lines of changes to 110 .pm, .t, .c and .h files. |
| 285 |
.PP |
| 286 |
Perl continues to flourish into its third decade thanks to a vibrant community |
| 287 |
of users and developers. The following people are known to have contributed |
| 288 |
the improvements that became Perl 5.20.1: |
| 289 |
.PP |
| 290 |
Aaron Crane, Abigail, Alberto Simões, Alexandr Ciornii, Alexandre (Midnite) |
| 291 |
Jousset, Andrew Fresh, Andy Dougherty, Brian Fraser, Chris 'BinGOs' Williams, |
| 292 |
Craig A. Berry, Daniel Dragan, David Golden, David Mitchell, H.Merijn Brand, |
| 293 |
James E Keenan, Jan Dubois, Jarkko Hietaniemi, John Peacock, kafka, Karen |
| 294 |
Etheridge, Karl Williamson, Lukas Mai, Matthew Horsfall, Michael Bunk, Peter |
| 295 |
Martini, Rafael Garcia-Suarez, Reini Urban, Ricardo Signes, Shirakata Kentaro, |
| 296 |
Smylers, Steve Hay, Thomas Sibley, Todd Rinaldo, Tony Cook, Vladimir Marek, |
| 297 |
Yves Orton. |
| 298 |
.PP |
| 299 |
The list above is almost certainly incomplete as it is automatically generated |
| 300 |
from version control history. In particular, it does not include the names of |
| 301 |
the (very much appreciated) contributors who reported issues to the Perl bug |
| 302 |
tracker. |
| 303 |
.PP |
| 304 |
Many of the changes included in this version originated in the CPAN modules |
| 305 |
included in Perl's core. We're grateful to the entire CPAN community for |
| 306 |
helping Perl to flourish. |
| 307 |
.PP |
| 308 |
For a more complete list of all of Perl's historical contributors, please see |
| 309 |
the \fIAUTHORS\fR file in the Perl source distribution. |
| 310 |
.SH "Reporting Bugs" |
| 311 |
.IX Header "Reporting Bugs" |
| 312 |
If you find what you think is a bug, you might check the articles recently |
| 313 |
posted to the comp.lang.perl.misc newsgroup and the perl bug database at |
| 314 |
https://rt.perl.org/ . There may also be information at http://www.perl.org/ , |
| 315 |
the Perl Home Page. |
| 316 |
.PP |
| 317 |
If you believe you have an unreported bug, please run the perlbug program |
| 318 |
included with your release. Be sure to trim your bug down to a tiny but |
| 319 |
sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR, |
| 320 |
will be sent off to [email protected] to be analysed by the Perl porting team. |
| 321 |
.PP |
| 322 |
If the bug you are reporting has security implications, which make it |
| 323 |
inappropriate to send to a publicly archived mailing list, then please send it |
| 324 |
to perl5\-security\[email protected]. This points to a closed subscription |
| 325 |
unarchived mailing list, which includes all the core committers, who will be |
| 326 |
able to help assess the impact of issues, figure out a resolution, and help |
| 327 |
co-ordinate the release of patches to mitigate or fix the problem across all |
| 328 |
platforms on which Perl is supported. Please only use this address for |
| 329 |
security issues in the Perl core, not for modules independently distributed on |
| 330 |
CPAN. |
| 331 |
.SH "SEE ALSO" |
| 332 |
.IX Header "SEE ALSO" |
| 333 |
The \fIChanges\fR file for an explanation of how to view exhaustive details on |
| 334 |
what changed. |
| 335 |
.PP |
| 336 |
The \fIINSTALL\fR file for how to build Perl. |
| 337 |
.PP |
| 338 |
The \fIREADME\fR file for general stuff. |
| 339 |
.PP |
| 340 |
The \fIArtistic\fR and \fICopying\fR files for copyright information. |