| 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 "PERL5221DELTA 1" |
| 58 |
.TH PERL5221DELTA 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 |
perl5221delta \- what is new for perl v5.22.1 |
| 65 |
.SH DESCRIPTION |
| 66 |
.IX Header "DESCRIPTION" |
| 67 |
This document describes differences between the 5.22.0 release and the 5.22.1 |
| 68 |
release. |
| 69 |
.PP |
| 70 |
If you are upgrading from an earlier release such as 5.20.0, first read |
| 71 |
perl5220delta, which describes differences between 5.20.0 and 5.22.0. |
| 72 |
.SH "Incompatible Changes" |
| 73 |
.IX Header "Incompatible Changes" |
| 74 |
There are no changes intentionally incompatible with 5.20.0 other than the |
| 75 |
following single exception, which we deemed to be a sensible change to make in |
| 76 |
order to get the new \f(CW\*(C`\eb{wb}\*(C'\fR and (in particular) \f(CW\*(C`\eb{sb}\*(C'\fR features sane |
| 77 |
before people decided they're worthless because of bugs in their Perl 5.22.0 |
| 78 |
implementation and avoided them in the future. |
| 79 |
If any others exist, they are bugs, and we request that you submit a report. |
| 80 |
See "Reporting Bugs" below. |
| 81 |
.SS "Bounds Checking Constructs" |
| 82 |
.IX Subsection "Bounds Checking Constructs" |
| 83 |
Several bugs, including a segmentation fault, have been fixed with the bounds |
| 84 |
checking constructs (introduced in Perl 5.22) \f(CW\*(C`\eb{gcb}\*(C'\fR, \f(CW\*(C`\eb{sb}\*(C'\fR, \f(CW\*(C`\eb{wb}\*(C'\fR, |
| 85 |
\&\f(CW\*(C`\eB{gcb}\*(C'\fR, \f(CW\*(C`\eB{sb}\*(C'\fR, and \f(CW\*(C`\eB{wb}\*(C'\fR. All the \f(CW\*(C`\eB{}\*(C'\fR ones now match an empty |
| 86 |
string; none of the \f(CW\*(C`\eb{}\*(C'\fR ones do. |
| 87 |
[GH #14976] <https://github.com/Perl/perl5/issues/14976> |
| 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 |
Module::CoreList has been upgraded from version 5.20150520 to 5.20151213. |
| 94 |
.IP \(bu 4 |
| 95 |
PerlIO::scalar has been upgraded from version 0.22 to 0.23. |
| 96 |
.IP \(bu 4 |
| 97 |
POSIX has been upgraded from version 1.53 to 1.53_01. |
| 98 |
.Sp |
| 99 |
If \f(CW\*(C`POSIX::strerror\*(C'\fR was passed \f(CW$!\fR as its argument then it accidentally |
| 100 |
cleared \f(CW$!\fR. This has been fixed. |
| 101 |
[GH #14951] <https://github.com/Perl/perl5/issues/14951> |
| 102 |
.IP \(bu 4 |
| 103 |
Storable has been upgraded from version 2.53 to 2.53_01. |
| 104 |
.IP \(bu 4 |
| 105 |
warnings has been upgraded from version 1.32 to 1.34. |
| 106 |
.Sp |
| 107 |
The \f(CW\*(C`warnings::enabled\*(C'\fR example now actually uses \f(CW\*(C`warnings::enabled\*(C'\fR. |
| 108 |
[GH #14905] <https://github.com/Perl/perl5/issues/14905> |
| 109 |
.IP \(bu 4 |
| 110 |
Win32 has been upgraded from version 0.51 to 0.52. |
| 111 |
.Sp |
| 112 |
This has been updated for Windows 8.1, 10 and 2012 R2 Server. |
| 113 |
.SH Documentation |
| 114 |
.IX Header "Documentation" |
| 115 |
.SS "Changes to Existing Documentation" |
| 116 |
.IX Subsection "Changes to Existing Documentation" |
| 117 |
\fIperltie\fR |
| 118 |
.IX Subsection "perltie" |
| 119 |
.IP \(bu 4 |
| 120 |
The usage of \f(CW\*(C`FIRSTKEY\*(C'\fR and \f(CW\*(C`NEXTKEY\*(C'\fR has been clarified. |
| 121 |
.PP |
| 122 |
\fIperlvar\fR |
| 123 |
.IX Subsection "perlvar" |
| 124 |
.IP \(bu 4 |
| 125 |
The specific true value of \f(CW$!{E...}\fR is now documented, noting that it is |
| 126 |
subject to change and not guaranteed. |
| 127 |
.SH Diagnostics |
| 128 |
.IX Header "Diagnostics" |
| 129 |
The following additions or changes have been made to diagnostic output, |
| 130 |
including warnings and fatal error messages. For the complete list of |
| 131 |
diagnostic messages, see perldiag. |
| 132 |
.SS "Changes to Existing Diagnostics" |
| 133 |
.IX Subsection "Changes to Existing Diagnostics" |
| 134 |
.IP \(bu 4 |
| 135 |
The \f(CW\*(C`printf\*(C'\fR and \f(CW\*(C`sprintf\*(C'\fR builtins are now more careful about the warnings |
| 136 |
they emit: argument reordering now disables the "redundant argument" warning in |
| 137 |
all cases. |
| 138 |
[GH #14772] <https://github.com/Perl/perl5/issues/14772> |
| 139 |
.SH "Configuration and Compilation" |
| 140 |
.IX Header "Configuration and Compilation" |
| 141 |
.IP \(bu 4 |
| 142 |
Using the \f(CW\*(C`NO_HASH_SEED\*(C'\fR define in combination with the default hash algorithm |
| 143 |
\&\f(CW\*(C`PERL_HASH_FUNC_ONE_AT_A_TIME_HARD\*(C'\fR resulted in a fatal error while compiling |
| 144 |
the interpreter, since Perl 5.17.10. This has been fixed. |
| 145 |
.IP \(bu 4 |
| 146 |
Configuring with ccflags containing quotes (e.g. |
| 147 |
\&\f(CW\*(C`\-Accflags=\*(Aq\-DAPPLLIB_EXP=\e"/usr/libperl\e"\*(Aq\*(C'\fR) was broken in Perl 5.22.0 |
| 148 |
but has now been fixed again. |
| 149 |
[GH #14732] <https://github.com/Perl/perl5/issues/14732> |
| 150 |
.SH "Platform Support" |
| 151 |
.IX Header "Platform Support" |
| 152 |
.SS "Platform-Specific Notes" |
| 153 |
.IX Subsection "Platform-Specific Notes" |
| 154 |
.IP IRIX 4 |
| 155 |
.IX Item "IRIX" |
| 156 |
.RS 4 |
| 157 |
.PD 0 |
| 158 |
.IP \(bu 4 |
| 159 |
.PD |
| 160 |
Under some circumstances IRIX stdio \fBfgetc()\fR and \fBfread()\fR set the errno to |
| 161 |
\&\f(CW\*(C`ENOENT\*(C'\fR, which made no sense according to either IRIX or POSIX docs. Errno |
| 162 |
is now cleared in such cases. |
| 163 |
[GH #14557] <https://github.com/Perl/perl5/issues/14557> |
| 164 |
.IP \(bu 4 |
| 165 |
Problems when multiplying long doubles by infinity have been fixed. |
| 166 |
[GH #14993] <https://github.com/Perl/perl5/issues/14993> |
| 167 |
.IP \(bu 4 |
| 168 |
All tests pass now on IRIX with the default build configuration. |
| 169 |
.RE |
| 170 |
.RS 4 |
| 171 |
.RE |
| 172 |
.SH "Selected Bug Fixes" |
| 173 |
.IX Header "Selected Bug Fixes" |
| 174 |
.IP \(bu 4 |
| 175 |
\&\f(CW\*(C`qr/(?[ () ])/\*(C'\fR no longer segfaults, giving a syntax error message instead. |
| 176 |
[GH #14851] <https://github.com/Perl/perl5/issues/14851> |
| 177 |
.IP \(bu 4 |
| 178 |
Regular expression possessive quantifier Perl 5.20 regression now fixed. |
| 179 |
\&\f(CW\*(C`qr/\*(C'\fR\fIPAT\fR\f(CW\*(C`{\*(C'\fR\fImin\fR,\fImax\fR\f(CW\*(C`}+\*(C'\fR\f(CW\*(C`/\*(C'\fR is supposed to behave identically to |
| 180 |
\&\f(CW\*(C`qr/(?>\*(C'\fR\fIPAT\fR\f(CW\*(C`{\*(C'\fR\fImin\fR,\fImax\fR\f(CW\*(C`})/\*(C'\fR. Since Perl 5.20, this didn't work |
| 181 |
if \fImin\fR and \fImax\fR were equal. |
| 182 |
[GH #14857] <https://github.com/Perl/perl5/issues/14857> |
| 183 |
.IP \(bu 4 |
| 184 |
Certain syntax errors in |
| 185 |
"Extended Bracketed Character Classes" in perlrecharclass caused panics instead |
| 186 |
of the proper error message. This has now been fixed. |
| 187 |
[GH #15016] <https://github.com/Perl/perl5/issues/15016> |
| 188 |
.IP \(bu 4 |
| 189 |
\&\f(CW\*(C`BEGIN <>\*(C'\fR no longer segfaults and properly produces an error message. |
| 190 |
[GH #13546] <https://github.com/Perl/perl5/issues/13546> |
| 191 |
.IP \(bu 4 |
| 192 |
A regression from Perl 5.20 has been fixed, in which some syntax errors in |
| 193 |
\&\f(CW\*(C`(?[...])\*(C'\fR constructs |
| 194 |
within regular expression patterns could cause a segfault instead of a proper |
| 195 |
error message. |
| 196 |
[GH #14933] <https://github.com/Perl/perl5/issues/14933> |
| 197 |
.IP \(bu 4 |
| 198 |
Another problem with |
| 199 |
\&\f(CW\*(C`(?[...])\*(C'\fR |
| 200 |
constructs has been fixed wherein things like \f(CW\*(C`\ec]\*(C'\fR could cause panics. |
| 201 |
[GH #14934] <https://github.com/Perl/perl5/issues/14934> |
| 202 |
.IP \(bu 4 |
| 203 |
In Perl 5.22.0, the logic changed when parsing a numeric parameter to the \-C |
| 204 |
option, such that the successfully parsed number was not saved as the option |
| 205 |
value if it parsed to the end of the argument. |
| 206 |
[GH #14748] <https://github.com/Perl/perl5/issues/14748> |
| 207 |
.IP \(bu 4 |
| 208 |
Warning fatality is now ignored when rewinding the stack. This prevents |
| 209 |
infinite recursion when the now fatal error also causes rewinding of the stack. |
| 210 |
[GH #14319] <https://github.com/Perl/perl5/issues/14319> |
| 211 |
.IP \(bu 4 |
| 212 |
A crash with \f(CW\*(C`%::=(); J\->${\e"::"}\*(C'\fR has been fixed. |
| 213 |
[GH #14790] <https://github.com/Perl/perl5/issues/14790> |
| 214 |
.IP \(bu 4 |
| 215 |
Nested quantifiers such as \f(CW\*(C`/.{1}??/\*(C'\fR should cause perl to throw a fatal |
| 216 |
error, but were being silently accepted since Perl 5.20.0. This has been |
| 217 |
fixed. |
| 218 |
[GH #14960] <https://github.com/Perl/perl5/issues/14960> |
| 219 |
.IP \(bu 4 |
| 220 |
Regular expression sequences such as \f(CW\*(C`/(?i/\*(C'\fR (and similarly with other |
| 221 |
recognized flags or combination of flags) should cause perl to throw a fatal |
| 222 |
error, but were being silently accepted since Perl 5.18.0. This has been |
| 223 |
fixed. |
| 224 |
[GH #14931] <https://github.com/Perl/perl5/issues/14931> |
| 225 |
.IP \(bu 4 |
| 226 |
A bug in hexadecimal floating point literal support meant that high-order bits |
| 227 |
could be lost in cases where mantissa overflow was caused by too many trailing |
| 228 |
zeros in the fractional part. This has been fixed. |
| 229 |
[GH #15032] <https://github.com/Perl/perl5/issues/15032> |
| 230 |
.IP \(bu 4 |
| 231 |
Another hexadecimal floating point bug, causing low-order bits to be lost in |
| 232 |
cases where the last hexadecimal digit of the mantissa has bits straddling the |
| 233 |
limit of the number of bits allowed for the mantissa, has also been fixed. |
| 234 |
[GH #15033] <https://github.com/Perl/perl5/issues/15033> |
| 235 |
.IP \(bu 4 |
| 236 |
Further hexadecimal floating point bugs have been fixed: In some circumstances, |
| 237 |
the \f(CW%a\fR format specifier could variously lose the sign of the negative zero, |
| 238 |
fail to display zeros after the radix point with the requested precision, or |
| 239 |
even lose the radix point after the leftmost hexadecimal digit completely. |
| 240 |
.IP \(bu 4 |
| 241 |
A crash caused by incomplete expressions within \f(CW\*(C`/(?[ ])/\*(C'\fR (e.g. |
| 242 |
\&\f(CW\*(C`/(?[[0]+()+])/\*(C'\fR) has been fixed. |
| 243 |
[GH #15045] <https://github.com/Perl/perl5/issues/15045> |
| 244 |
.SH Acknowledgements |
| 245 |
.IX Header "Acknowledgements" |
| 246 |
Perl 5.22.1 represents approximately 6 months of development since Perl 5.22.0 |
| 247 |
and contains approximately 19,000 lines of changes across 130 files from 27 |
| 248 |
authors. |
| 249 |
.PP |
| 250 |
Excluding auto-generated files, documentation and release tools, there were |
| 251 |
approximately 1,700 lines of changes to 44 .pm, .t, .c and .h files. |
| 252 |
.PP |
| 253 |
Perl continues to flourish into its third decade thanks to a vibrant community |
| 254 |
of users and developers. The following people are known to have contributed |
| 255 |
the improvements that became Perl 5.22.1: |
| 256 |
.PP |
| 257 |
Aaron Crane, Abigail, Andy Broad, Aristotle Pagaltzis, Chase Whitener, Chris |
| 258 |
\&'BinGOs' Williams, Craig A. Berry, Daniel Dragan, David Mitchell, Father |
| 259 |
Chrysostomos, Herbert Breunung, Hugo van der Sanden, James E Keenan, Jan |
| 260 |
Dubois, Jarkko Hietaniemi, Karen Etheridge, Karl Williamson, Lukas Mai, Matthew |
| 261 |
Horsfall, Peter Martini, Rafael Garcia-Suarez, Ricardo Signes, Shlomi Fish, |
| 262 |
Sisyphus, Steve Hay, Tony Cook, Victor Adam. |
| 263 |
.PP |
| 264 |
The list above is almost certainly incomplete as it is automatically generated |
| 265 |
from version control history. In particular, it does not include the names of |
| 266 |
the (very much appreciated) contributors who reported issues to the Perl bug |
| 267 |
tracker. |
| 268 |
.PP |
| 269 |
Many of the changes included in this version originated in the CPAN modules |
| 270 |
included in Perl's core. We're grateful to the entire CPAN community for |
| 271 |
helping Perl to flourish. |
| 272 |
.PP |
| 273 |
For a more complete list of all of Perl's historical contributors, please see |
| 274 |
the \fIAUTHORS\fR file in the Perl source distribution. |
| 275 |
.SH "Reporting Bugs" |
| 276 |
.IX Header "Reporting Bugs" |
| 277 |
If you find what you think is a bug, you might check the articles recently |
| 278 |
posted to the comp.lang.perl.misc newsgroup and the perl bug database at |
| 279 |
https://rt.perl.org/ . There may also be information at |
| 280 |
http://www.perl.org/ , the Perl Home Page. |
| 281 |
.PP |
| 282 |
If you believe you have an unreported bug, please run the perlbug program |
| 283 |
included with your release. Be sure to trim your bug down to a tiny but |
| 284 |
sufficient test case. Your bug report, along with the output of \f(CW\*(C`perl \-V\*(C'\fR, |
| 285 |
will be sent off to [email protected] to be analysed by the Perl porting team. |
| 286 |
.PP |
| 287 |
If the bug you are reporting has security implications, which make it |
| 288 |
inappropriate to send to a publicly archived mailing list, then please send it |
| 289 |
to perl5\-security\[email protected]. This points to a closed subscription |
| 290 |
unarchived mailing list, which includes all the core committers, who will be |
| 291 |
able to help assess the impact of issues, figure out a resolution, and help |
| 292 |
co-ordinate the release of patches to mitigate or fix the problem across all |
| 293 |
platforms on which Perl is supported. Please only use this address for |
| 294 |
security issues in the Perl core, not for modules independently distributed on |
| 295 |
CPAN. |
| 296 |
.SH "SEE ALSO" |
| 297 |
.IX Header "SEE ALSO" |
| 298 |
The \fIChanges\fR file for an explanation of how to view exhaustive details on |
| 299 |
what changed. |
| 300 |
.PP |
| 301 |
The \fIINSTALL\fR file for how to build Perl. |
| 302 |
.PP |
| 303 |
The \fIREADME\fR file for general stuff. |
| 304 |
.PP |
| 305 |
The \fIArtistic\fR and \fICopying\fR files for copyright information. |