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