1PERL5221DELTA(1) Perl Programmers Reference Guide PERL5221DELTA(1)
2
3
4
6 perl5221delta - what is new for perl v5.22.1
7
9 This document describes differences between the 5.22.0 release and the
10 5.22.1 release.
11
12 If you are upgrading from an earlier release such as 5.20.0, first read
13 perl5220delta, which describes differences between 5.20.0 and 5.22.0.
14
16 There are no changes intentionally incompatible with 5.20.0 other than
17 the following single exception, which we deemed to be a sensible change
18 to make in order to get the new "\b{wb}" and (in particular) "\b{sb}"
19 features sane before people decided they're worthless because of bugs
20 in their Perl 5.22.0 implementation and avoided them in the future. If
21 any others exist, they are bugs, and we request that you submit a
22 report. See "Reporting Bugs" below.
23
24 Bounds Checking Constructs
25 Several bugs, including a segmentation fault, have been fixed with the
26 bounds checking constructs (introduced in Perl 5.22) "\b{gcb}",
27 "\b{sb}", "\b{wb}", "\B{gcb}", "\B{sb}", and "\B{wb}". All the "\B{}"
28 ones now match an empty string; none of the "\b{}" ones do. [perl
29 #126319] <https://rt.perl.org/Ticket/Display.html?id=126319>
30
32 Updated Modules and Pragmata
33 · Module::CoreList has been upgraded from version 5.20150520 to
34 5.20151213.
35
36 · PerlIO::scalar has been upgraded from version 0.22 to 0.23.
37
38 · POSIX has been upgraded from version 1.53 to 1.53_01.
39
40 If "POSIX::strerror" was passed $! as its argument then it
41 accidentally cleared $!. This has been fixed. [perl #126229]
42 <https://rt.perl.org/Ticket/Display.html?id=126229>
43
44 · Storable has been upgraded from version 2.53 to 2.53_01.
45
46 · warnings has been upgraded from version 1.32 to 1.34.
47
48 The "warnings::enabled" example now actually uses
49 "warnings::enabled". [perl #126051]
50 <https://rt.perl.org/Ticket/Display.html?id=126051>
51
52 · Win32 has been upgraded from version 0.51 to 0.52.
53
54 This has been updated for Windows 8.1, 10 and 2012 R2 Server.
55
57 Changes to Existing Documentation
58 perltie
59
60 · The usage of "FIRSTKEY" and "NEXTKEY" has been clarified.
61
62 perlvar
63
64 · The specific true value of $!{E...} is now documented, noting that
65 it is subject to change and not guaranteed.
66
68 The following additions or changes have been made to diagnostic output,
69 including warnings and fatal error messages. For the complete list of
70 diagnostic messages, see perldiag.
71
72 Changes to Existing Diagnostics
73 · The "printf" and "sprintf" builtins are now more careful about the
74 warnings they emit: argument reordering now disables the "redundant
75 argument" warning in all cases. [perl #125469]
76 <https://rt.perl.org/Ticket/Display.html?id=125469>
77
79 · Using the "NO_HASH_SEED" define in combination with the default
80 hash algorithm "PERL_HASH_FUNC_ONE_AT_A_TIME_HARD" resulted in a
81 fatal error while compiling the interpreter, since Perl 5.17.10.
82 This has been fixed.
83
84 · Configuring with ccflags containing quotes (e.g.
85 "-Accflags='-DAPPLLIB_EXP=\"/usr/libperl\"'") was broken in Perl
86 5.22.0 but has now been fixed again. [perl #125314]
87 <https://rt.perl.org/Ticket/Display.html?id=125314>
88
90 Platform-Specific Notes
91 IRIX
92 · Under some circumstances IRIX stdio fgetc() and fread() set the
93 errno to "ENOENT", which made no sense according to either IRIX
94 or POSIX docs. Errno is now cleared in such cases. [perl
95 #123977] <https://rt.perl.org/Ticket/Display.html?id=123977>
96
97 · Problems when multiplying long doubles by infinity have been
98 fixed. [perl #126396]
99 <https://rt.perl.org/Ticket/Display.html?id=126396>
100
101 · All tests pass now on IRIX with the default build
102 configuration.
103
105 · "qr/(?[ () ])/" no longer segfaults, giving a syntax error message
106 instead. [perl #125805]
107 <https://rt.perl.org/Ticket/Display.html?id=125805>
108
109 · Regular expression possessive quantifier Perl 5.20 regression now
110 fixed. "qr/"PAT"{"min,max"}+""/" is supposed to behave identically
111 to "qr/(?>"PAT"{"min,max"})/". Since Perl 5.20, this didn't work
112 if min and max were equal. [perl #125825]
113 <https://rt.perl.org/Ticket/Display.html?id=125825>
114
115 · Certain syntax errors in "Extended Bracketed Character Classes" in
116 perlrecharclass caused panics instead of the proper error message.
117 This has now been fixed. [perl #126481]
118 <https://rt.perl.org/Ticket/Display.html?id=126481>
119
120 · "BEGIN <>" no longer segfaults and properly produces an error
121 message. [perl #125341]
122 <https://rt.perl.org/Ticket/Display.html?id=125341>
123
124 · A regression from Perl 5.20 has been fixed, in which some syntax
125 errors in "(?[...])" constructs within regular expression patterns
126 could cause a segfault instead of a proper error message. [perl
127 #126180] <https://rt.perl.org/Ticket/Display.html?id=126180>
128
129 · Another problem with "(?[...])" constructs has been fixed wherein
130 things like "\c]" could cause panics. [perl #126181]
131 <https://rt.perl.org/Ticket/Display.html?id=126181>
132
133 · In Perl 5.22.0, the logic changed when parsing a numeric parameter
134 to the -C option, such that the successfully parsed number was not
135 saved as the option value if it parsed to the end of the argument.
136 [perl #125381] <https://rt.perl.org/Ticket/Display.html?id=125381>
137
138 · Warning fatality is now ignored when rewinding the stack. This
139 prevents infinite recursion when the now fatal error also causes
140 rewinding of the stack. [perl #123398]
141 <https://rt.perl.org/Ticket/Display.html?id=123398>
142
143 · A crash with "%::=(); J->${\"::"}" has been fixed. [perl #125541]
144 <https://rt.perl.org/Ticket/Display.html?id=125541>
145
146 · Nested quantifiers such as "/.{1}??/" should cause perl to throw a
147 fatal error, but were being silently accepted since Perl 5.20.0.
148 This has been fixed. [perl #126253]
149 <https://rt.perl.org/Ticket/Display.html?id=126253>
150
151 · Regular expression sequences such as "/(?i/" (and similarly with
152 other recognized flags or combination of flags) should cause perl
153 to throw a fatal error, but were being silently accepted since Perl
154 5.18.0. This has been fixed. [perl #126178]
155 <https://rt.perl.org/Ticket/Display.html?id=126178>
156
157 · A bug in hexadecimal floating point literal support meant that
158 high-order bits could be lost in cases where mantissa overflow was
159 caused by too many trailing zeros in the fractional part. This has
160 been fixed. [perl #126582]
161 <https://rt.perl.org/Ticket/Display.html?id=126582>
162
163 · Another hexadecimal floating point bug, causing low-order bits to
164 be lost in cases where the last hexadecimal digit of the mantissa
165 has bits straddling the limit of the number of bits allowed for the
166 mantissa, has also been fixed. [perl #126586]
167 <https://rt.perl.org/Ticket/Display.html?id=126586>
168
169 · Further hexadecimal floating point bugs have been fixed: In some
170 circumstances, the %a format specifier could variously lose the
171 sign of the negative zero, fail to display zeros after the radix
172 point with the requested precision, or even lose the radix point
173 after the leftmost hexadecimal digit completely.
174
175 · A crash caused by incomplete expressions within "/(?[ ])/" (e.g.
176 "/(?[[0]+()+])/") has been fixed. [perl #126615]
177 <https://rt.perl.org/Ticket/Display.html?id=126615>
178
180 Perl 5.22.1 represents approximately 6 months of development since Perl
181 5.22.0 and contains approximately 19,000 lines of changes across 130
182 files from 27 authors.
183
184 Excluding auto-generated files, documentation and release tools, there
185 were approximately 1,700 lines of changes to 44 .pm, .t, .c and .h
186 files.
187
188 Perl continues to flourish into its third decade thanks to a vibrant
189 community of users and developers. The following people are known to
190 have contributed the improvements that became Perl 5.22.1:
191
192 Aaron Crane, Abigail, Andy Broad, Aristotle Pagaltzis, Chase Whitener,
193 Chris 'BinGOs' Williams, Craig A. Berry, Daniel Dragan, David Mitchell,
194 Father Chrysostomos, Herbert Breunung, Hugo van der Sanden, James E
195 Keenan, Jan Dubois, Jarkko Hietaniemi, Karen Etheridge, Karl
196 Williamson, Lukas Mai, Matthew Horsfall, Peter Martini, Rafael Garcia-
197 Suarez, Ricardo Signes, Shlomi Fish, Sisyphus, Steve Hay, Tony Cook,
198 Victor Adam.
199
200 The list above is almost certainly incomplete as it is automatically
201 generated from version control history. In particular, it does not
202 include the names of the (very much appreciated) contributors who
203 reported issues to the Perl bug tracker.
204
205 Many of the changes included in this version originated in the CPAN
206 modules included in Perl's core. We're grateful to the entire CPAN
207 community for helping Perl to flourish.
208
209 For a more complete list of all of Perl's historical contributors,
210 please see the AUTHORS file in the Perl source distribution.
211
213 If you find what you think is a bug, you might check the articles
214 recently posted to the comp.lang.perl.misc newsgroup and the perl bug
215 database at https://rt.perl.org/ . There may also be information at
216 http://www.perl.org/ , the Perl Home Page.
217
218 If you believe you have an unreported bug, please run the perlbug
219 program included with your release. Be sure to trim your bug down to a
220 tiny but sufficient test case. Your bug report, along with the output
221 of "perl -V", will be sent off to perlbug@perl.org to be analysed by
222 the Perl porting team.
223
224 If the bug you are reporting has security implications, which make it
225 inappropriate to send to a publicly archived mailing list, then please
226 send it to perl5-security-report@perl.org. This points to a closed
227 subscription unarchived mailing list, which includes all the core
228 committers, who will be able to help assess the impact of issues,
229 figure out a resolution, and help co-ordinate the release of patches to
230 mitigate or fix the problem across all platforms on which Perl is
231 supported. Please only use this address for security issues in the
232 Perl core, not for modules independently distributed on CPAN.
233
235 The Changes file for an explanation of how to view exhaustive details
236 on what changed.
237
238 The INSTALL file for how to build Perl.
239
240 The README file for general stuff.
241
242 The Artistic and Copying files for copyright information.
243
244
245
246perl v5.30.2 2020-03-27 PERL5221DELTA(1)