-
Notifications
You must be signed in to change notification settings - Fork 2
/
perl5271delta.html
391 lines (246 loc) · 19.5 KB
/
perl5271delta.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<?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></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body style="background-color: white">
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#Core-Enhancements">Core Enhancements</a>
<ul>
<li><a href="#delete-on-key-value-slices">delete on key/value slices</a></li>
</ul>
</li>
<li><a href="#Security">Security</a>
<ul>
<li><a href="#Default-Hash-Function-Change">Default Hash Function Change</a></li>
</ul>
</li>
<li><a href="#Incompatible-Changes">Incompatible Changes</a>
<ul>
<li><a href="#Comma-less-variable-lists-in-formats-are-no-longer-allowed">Comma-less variable lists in formats are no longer allowed</a></li>
<li><a href="#The-:locked-and-:unique-attributes-have-been-removed">The :locked and :unique attributes have been removed</a></li>
<li><a href="#N-with-nothing-between-the-braces-is-now-illegal">\N{} with nothing between the braces is now illegal.</a></li>
<li><a href="#Opening-the-same-symbol-as-both-a-file-and-directory-handle-is-no-longer-allowed">Opening the same symbol as both a file and directory handle is no longer allowed</a></li>
<li><a href="#Use-of-bare-to-mean-is-no-longer-allowed">Use of bare << to mean <<"" is no longer allowed</a></li>
<li><a href="#Setting-to-a-reference-to-a-non-positive-integer-no-longer-allowed">Setting $/ to a reference to a non-positive integer no longer allowed</a></li>
<li><a href="#Unicode-code-points-with-values-exceeding-IV_MAX-are-now-fatal">Unicode code points with values exceeding IV_MAX are now fatal.</a></li>
<li><a href="#B::OP::terse-no-longer-exists">B::OP::terse no longer exists.</a></li>
<li><a href="#Use-of-inherited-AUTOLOAD-for-non-methods-is-no-longer-allowed">Use of inherited AUTOLOAD for non-methods is no longer allowed.</a></li>
<li><a href="#Use-of-strings-with-code-points-over-0xFF-is-not-allowed-for-bitwise-string-operators">Use of strings with code points over 0xFF is not allowed for bitwise string operators</a></li>
<li><a href="#Setting-ENCODING-to-a-defined-value-is-now-illegal">Setting ${^ENCODING} to a defined value is now illegal</a></li>
<li><a href="#Backslash-no-longer-escapes-colon-in-PATH-for-the--S-switch">Backslash no longer escapes colon in PATH for the -S switch</a></li>
<li><a href="#the--DH-DEBUG_H-misfeature-has-been-removed">the -DH (DEBUG_H) misfeature has been removed</a></li>
</ul>
</li>
<li><a href="#Deprecations">Deprecations</a>
<ul>
<li><a href="#Use-of-vec-on-strings-with-code-points-above-0xFF-is-deprecated">Use of vec on strings with code points above 0xFF is deprecated.</a></li>
<li><a href="#Some-uses-of-unescaped-are-no-longer-fatal">Some uses of unescaped "{" are no longer fatal</a></li>
</ul>
</li>
<li><a href="#Performance-Enhancements">Performance Enhancements</a></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="#Testing">Testing</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="#Internal-Changes">Internal Changes</a></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="#Give-Thanks">Give Thanks</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>perl5271delta - what is new for perl v5.27.1</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes differences between the 5.27.0 release and the 5.27.1 release.</p>
<p>If you are upgrading from an earlier release such as 5.26.0, first read <a href="/cperl/perl5270delta.html">perl5270delta</a>, which describes differences between 5.26.0 and 5.27.0.</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<h2 id="delete-on-key-value-slices"><a href="/cperl/perlfunc.html#delete-EXPR"><code>delete</code></a> on key/value slices</h2>
<p><a href="/cperl/perlfunc.html#delete-EXPR"><code>delete</code></a> can now be used on key/value slices, returning the keys along with the deleted values. <a href="https://rt.perl.org/Ticket/Display.html?id=131328">[perl #131328]</a></p>
<h1 id="Security">Security</h1>
<h2 id="Default-Hash-Function-Change">Default Hash Function Change</h2>
<p>Perl 5.27.1 retires various older hash functions which are not viewed as sufficiently secure for use in Perl. We now support four general purpose hash functions, Siphash (2-4 and 1-3 variants), and Zaphod32, and StadtX hash. In addition we support SBOX32 (a form of tabular hashing) for hashing short strings, in conjunction with any of the other hash functions provided.</p>
<p>By default Perl is configured to support SBOX hashing of strings up to 24 characters, in conjunction with StadtX hashing on 64 bit builds, and Zaphod32 hashing for 32 bit builds.</p>
<p>You may control these settings with the following options to Configure:</p>
<pre><code> -DPERL_HASH_FUNC_SIPHASH
-DPERL_HASH_FUNC_SIPHASH13
-DPERL_HASH_FUNC_STADTX
-DPERL_HASH_FUNC_ZAPHOD32</code></pre>
<p>To disable SBOX hashing you can use</p>
<pre><code> -DPERL_HASH_USE_SBOX32_ALSO=0</code></pre>
<p>And to set the maximum length to use SBOX32 hashing on with:</p>
<pre><code> -DSBOX32_MAX_LEN=16</code></pre>
<p>The maximum length allowed is 256. There probably isn't much point in setting it higher than the default.</p>
<h1 id="Incompatible-Changes">Incompatible Changes</h1>
<h2 id="Comma-less-variable-lists-in-formats-are-no-longer-allowed">Comma-less variable lists in formats are no longer allowed</h2>
<p>Omitting the commas between variables passed to formats is no longer allowed. This has been deprecated since Perl 5.000.</p>
<h2 id="The-:locked-and-:unique-attributes-have-been-removed">The <code>:locked</code> and <code>:unique</code> attributes have been removed</h2>
<p>These have been no-ops and deprecated since Perl 5.12 and 5.10, respectively.</p>
<h2 id="N-with-nothing-between-the-braces-is-now-illegal"><code>\N{}</code> with nothing between the braces is now illegal.</h2>
<p>This has been deprecated since Perl 5.24.</p>
<h2 id="Opening-the-same-symbol-as-both-a-file-and-directory-handle-is-no-longer-allowed">Opening the same symbol as both a file and directory handle is no longer allowed</h2>
<p>Using <code>open()</code> and <code>opendir()</code> to associate both a filehandle and a dirhandle to the same symbol (glob or scalar) has been deprecated since Perl 5.10.</p>
<h2 id="Use-of-bare-to-mean-is-no-longer-allowed">Use of bare <code><<</code> to mean <code><<""</code> is no longer allowed</h2>
<p>Use of a bare terminator has been deprecated since Perl 5.000.</p>
<h2 id="Setting-to-a-reference-to-a-non-positive-integer-no-longer-allowed">Setting $/ to a reference to a non-positive integer no longer allowed</h2>
<p>This used to work like setting it to <code>undef</code>, but has been deprecated since Perl 5.20.</p>
<h2 id="Unicode-code-points-with-values-exceeding-IV_MAX-are-now-fatal">Unicode code points with values exceeding <code>IV_MAX</code> are now fatal.</h2>
<p>This was deprecated since Perl 5.24.</p>
<h2 id="B::OP::terse-no-longer-exists"><code>B::OP::terse</code> no longer exists.</h2>
<p>Use <code>B::Concise::b_terse</code> instead.</p>
<h2 id="Use-of-inherited-AUTOLOAD-for-non-methods-is-no-longer-allowed">Use of inherited AUTOLOAD for non-methods is no longer allowed.</h2>
<p>This was deprecated in Perl 5.004.</p>
<h2 id="Use-of-strings-with-code-points-over-0xFF-is-not-allowed-for-bitwise-string-operators">Use of strings with code points over 0xFF is not allowed for bitwise string operators</h2>
<p>Code points over <code>0xFF</code> do not make sense for bitwise operators.</p>
<h2 id="Setting-ENCODING-to-a-defined-value-is-now-illegal">Setting <code>${^ENCODING}</code> to a defined value is now illegal</h2>
<p>This has been deprecated since Perl 5.22 and a no-op since Perl 5.26.</p>
<h2 id="Backslash-no-longer-escapes-colon-in-PATH-for-the--S-switch">Backslash no longer escapes colon in PATH for the -S switch</h2>
<p>Previously the <code>-S</code> switch incorrectly treated backslash ("\") as an escape for colon when traversing the <code>PATH</code> environment variable. [perl #129183]</p>
<h2 id="the--DH-DEBUG_H-misfeature-has-been-removed">the -DH (DEBUG_H) misfeature has been removed</h2>
<p>On a perl built with debugging support, the <code>H</code> flag to the <code>-D</code> debugging option has been removed. This was supposed to dump hash values, but has been broken for many years.</p>
<h1 id="Deprecations">Deprecations</h1>
<h2 id="Use-of-vec-on-strings-with-code-points-above-0xFF-is-deprecated">Use of <a href="/cperl/perlfunc.html#vec-EXPR-OFFSET-BITS"><code>vec</code></a> on strings with code points above 0xFF is deprecated.</h2>
<p>Use of these is nonsensical, as <code>vec</code> is a bit-oriented operation, which operates on the underlying UTF-8 representation these strings must be in, and will likely give unexpected results.</p>
<h2 id="Some-uses-of-unescaped-are-no-longer-fatal">Some uses of unescaped <code>"{"</code> are no longer fatal</h2>
<p>Perl 5.26.0 fatalized some uses of an unescaped left brace, but an exception was made at the last minute, specifically crafted to be a minimal change to allow GNU Autoconf to work. This code is heavily depended upon, and continues to use the deprecated usage. Its use of an unescaped left brace is one where we have no intention of repurposing <code>"{"</code> to be something other than itself.</p>
<p>That exception is now generalized to include various other such cases where the <code>"{"</code> will not be repurposed. This is to get real experience with this more complicated change now, in case we need to issue a dot release if we find other things like Autoconf that are important to work around.</p>
<p>Note that these uses continue to raise a deprecation message.</p>
<h1 id="Performance-Enhancements">Performance Enhancements</h1>
<ul>
<li><p><a href="/cperl/lib/File/Glob.html">File::Glob</a> has been modified to remove unnecessary backtracking and recursion, thanks to Russ Cox. See <a href="https://research.swtch.com/glob">https://research.swtch.com/glob</a> for more details.</p>
</li>
<li><p>The <code>ref()</code> builtin is now much faster in boolean context, since it no longer bothers to construct a temporary string like <code>Foo=ARRAY(0x134af48)</code>.</p>
</li>
</ul>
<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/Archive/Tar.html">Archive::Tar</a> has been upgraded from version 2.24 to 2.26.</p>
</li>
<li><p><a href="/cperl/lib/B/Deparse.html">B::Deparse</a> has been upgraded from version 1.40 to 1.41. It includes many bug fixes, and in particular, it now deparses variable attributes correctly:</p>
<pre><code> my $x :foo; # used to deparse as
# 'attributes'->import('main', \$x, 'foo'), my $x;</code></pre>
</li>
<li><p><a href="/cperl/lib/charnames.html">charnames</a> has been upgraded from version 1.44 to 1.45.</p>
</li>
<li><p><a href="/cperl/lib/Devel/PPPort.html">Devel::PPPort</a> has been upgraded from version 3.35 to 3.36.</p>
</li>
<li><p><a href="/cperl/lib/DirHandle.html">DirHandle</a> has been upgraded from version 1.04 to 1.05.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Install.html">ExtUtils::Install</a> has been upgraded from version 2.04 to 2.14.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 7.24 to 7.30.</p>
</li>
<li><p><a href="/cperl/lib/File/Path.html">File::Path</a> has been upgraded from version 2.12_01 to 2.14.</p>
</li>
<li><p><a href="/cperl/lib/Filter/Util/Call.html">Filter::Util::Call</a> has been upgraded from version 1.55 to 1.57.</p>
</li>
<li><p><a>GDBM_File</a> has been upgraded from version 1.15 to 1.16.</p>
</li>
<li><p><a href="/cperl/lib/Getopt/Long.html">Getopt::Long</a> has been upgraded from version 2.49 to 2.5.</p>
</li>
<li><p><a href="/cperl/lib/if.html">if</a> has been upgraded from version 0.0606 to 0.0607.</p>
</li>
<li><p><a href="/cperl/lib/IO/Socket/IP.html">IO::Socket::IP</a> has been upgraded from version 0.38 to 0.39.</p>
</li>
<li><p><a href="/cperl/lib/IPC/Cmd.html">IPC::Cmd</a> has been upgraded from version 0.96 to 0.98.</p>
</li>
<li><p><a href="/cperl/lib/JSON/PP.html">JSON::PP</a> has been upgraded from version 2.27400_02 to 2.94.</p>
</li>
<li><p><a>Locale::Codes</a> has been upgraded from version 3.42 to 3.52.</p>
</li>
<li><p><a href="/cperl/lib/Module/CoreList.html">Module::CoreList</a> has been upgraded from version 5.20170620 to 5.20170621.</p>
</li>
<li><p><a href="/cperl/lib/mro.html">mro</a> has been upgraded from version 1.20 to 1.21.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/scalar.html">PerlIO::scalar</a> has been upgraded from version 0.26 to 0.27.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/via.html">PerlIO::via</a> has been upgraded from version 0.16 to 0.17.</p>
</li>
<li><p><a href="/cperl/lib/Storable.html">Storable</a> has been upgraded from version 2.62 to 2.63.</p>
</li>
<li><p><a href="/cperl/lib/Test/Harness.html">Test::Harness</a> has been upgraded from version 3.38 to 3.39.</p>
</li>
<li><p><a href="/cperl/lib/threads.html">threads</a> has been upgraded from version 2.15 to 2.16.</p>
</li>
<li><p><a href="/cperl/lib/threads/shared.html">threads::shared</a> has been upgraded from version 1.56 to 1.57.</p>
</li>
<li><p><a href="/cperl/lib/version.html">version</a> has been upgraded from version 0.9917 to 0.9918.</p>
</li>
</ul>
<h1 id="Testing">Testing</h1>
<p>Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:</p>
<ul>
<li><p>Testing of the XS-APItest directory is now done in parallel, where applicable.</p>
</li>
<li><p>Perl now includes a default <i>.travis.yml</i> file for Travis CI testing on github mirrors. [perl #123981]</p>
</li>
</ul>
<h1 id="Platform-Support">Platform Support</h1>
<h2 id="Platform-Specific-Notes">Platform-Specific Notes</h2>
<dl>
<dt id="Windows">Windows</dt>
<dd>
<ul>
<li><p>Support for compiling perl on Windows using Microsoft Visual Studio 2017 (containing Visual C++ 14.1) has been added.</p>
</li>
</ul>
</dd>
</dl>
<h1 id="Internal-Changes">Internal Changes</h1>
<ul>
<li><p>The <code>PL_statbuf</code> interpreter variable has been removed.</p>
</li>
<li><p>The deprecated function <code>to_utf8_case()</code>, accessible from XS code, has been removed.</p>
</li>
<li><p>A new function <a href="/cperl/perlapi.html#is_utf8_invariant_string_loc"><code>is_utf8_invariant_string_loc()</code></a> has been added that is like <a href="/cperl/perlapi.html#is_utf8_invariant_string"><code>is_utf8_invariant_string()</code></a> but takes an extra pointer parameter into which is stored the location of the first variant character, if any are found.</p>
</li>
</ul>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<ul>
<li><p>Fetching the name of a glob that was previously UTF-8 but wasn't any longer would return that name flagged as UTF-8. [perl #131263]</p>
</li>
<li><p>The perl <code>sprintf()</code> function (via the underlying C function <code>Perl_sv_vcatpvfn_flags()</code>) has been heavily reworked to fix many minor bugs, including the integer wrapping of large width and precision specifiers and potential buffer overruns. It has also been made faster in many cases.</p>
</li>
<li><p>Exiting from an <code>eval</code>, whether normally or via an exception, now always frees temporary values (possibly calling destructors) <i>before</i> setting <code>$@</code>. For example:</p>
<pre><code> sub DESTROY { eval { die "died in DESTROY"; } }
eval { bless []; };
# $@ used to be equal to "died in DESTROY" here; it's now "".</code></pre>
</li>
</ul>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>Perl 5.27.1 represents approximately 3 weeks of development since Perl 5.27.0 and contains approximately 62,000 lines of changes across 510 files from 30 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 55,000 lines of changes to 380 .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.27.1:</p>
<p>Aaron Crane, Abigail, Andy Dougherty, Andy Lester, Aristotle Pagaltzis, Chris 'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Collins, David Mitchell, Eric Herman, Eugen Konkov, Father Chrysostomos, Graham Knop, H.Merijn Brand, Jacques Germishuys, James E Keenan, Jerry D. Hedden, John Peacock, Karl Williamson, Ken Cotterill, Lukas Mai, Matthew Horsfall, Sawyer X, Steve Hay, Sullivan Beck, Thomas Sibley, Tony Cook, Yves Orton, Zefram.</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 perl bug database at <a href="https://rt.perl.org/">https://rt.perl.org/</a> . There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a> , 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 see <a href="/cperl/perlsec.html#SECURITY-VULNERABILITY-CONTACT-INFORMATION">"SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec</a> for details of how to report the issue.</p>
<h1 id="Give-Thanks">Give Thanks</h1>
<p>If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you can do so by running the <code>perlthanks</code> program:</p>
<pre><code> perlthanks</code></pre>
<p>This will send an email to the Perl 5 Porters list with your show of thanks.</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>