-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5121delta.html
343 lines (213 loc) · 14 KB
/
perl5121delta.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
<?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>perl5121delta - what is new for perl v5.12.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></li>
<li><a href="#Core-Enhancements">Core Enhancements</a></li>
<li><a href="#Modules-and-Pragmata">Modules and Pragmata</a>
<ul>
<li><a href="#Pragmata-Changes">Pragmata Changes</a></li>
<li><a href="#Updated-Modules">Updated Modules</a></li>
</ul>
</li>
<li><a href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a></li>
<li><a href="#Testing">Testing</a>
<ul>
<li><a href="#Testing-Improvements">Testing Improvements</a></li>
</ul>
</li>
<li><a href="#Installation-and-Configuration-Improvements">Installation and Configuration Improvements</a>
<ul>
<li><a href="#Configuration-improvements">Configuration improvements</a></li>
</ul>
</li>
<li><a href="#Bug-Fixes">Bug Fixes</a></li>
<li><a href="#Platform-Specific-Notes">Platform Specific Notes</a>
<ul>
<li><a href="#HP-UX">HP-UX</a></li>
<li><a href="#AIX">AIX</a></li>
<li><a href="#FreeBSD-7">FreeBSD 7</a></li>
<li><a href="#VMS">VMS</a></li>
</ul>
</li>
<li><a href="#Known-Problems">Known Problems</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>perl5121delta - what is new for perl v5.12.1</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes differences between the 5.12.0 release and the 5.12.1 release.</p>
<p>If you are upgrading from an earlier release such as 5.10.1, first read <a href="/cperl/perl5120delta.html">perl5120delta</a>, which describes differences between 5.10.1 and 5.12.0.</p>
<h1 id="Incompatible-Changes">Incompatible Changes</h1>
<p>There are no changes intentionally incompatible with 5.12.0. If any incompatibilities with 5.12.0 exist, they are bugs. Please report them.</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<p>Other than the bug fixes listed below, there should be no user-visible changes to the core language in this release.</p>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="Pragmata-Changes">Pragmata Changes</h2>
<ul>
<li><p>We fixed exporting of <code>is_strict</code> and <code>is_lax</code> from <a href="/cperl/lib/version.html">version</a>.</p>
<p>These were being exported with a wrapper that treated them as method calls, which caused them to fail. They are just functions, are documented as such, and should never be subclassed, so this patch just exports them directly as functions without the wrapper.</p>
</li>
</ul>
<h2 id="Updated-Modules">Updated Modules</h2>
<ul>
<li><p>We upgraded <a>CGI.pm</a> to version 3.49 to incorporate fixes for regressions introduced in the release we shipped with Perl 5.12.0.</p>
</li>
<li><p>We upgraded <a href="/cperl/lib/Pod/Simple.html">Pod::Simple</a> to version 3.14 to get an improvement to \C\<\< \>\> parsing.</p>
</li>
<li><p>We made a small fix to the <a>CPANPLUS</a> test suite to fix an occasional spurious test failure.</p>
</li>
<li><p>We upgraded <a href="/cperl/lib/Safe.html">Safe</a> to version 2.27 to wrap coderefs returned by <code>reval()</code> and <code>rdo()</code>.</p>
</li>
</ul>
<h1 id="Changes-to-Existing-Documentation">Changes to Existing Documentation</h1>
<ul>
<li><p>We added the new maintenance release policy to <a>perlpolicy.pod</a></p>
</li>
<li><p>We've clarified the multiple-angle-bracket construct in the spec for POD in <a href="/cperl/perlpodspec.html">perlpodspec</a></p>
</li>
<li><p>We added a missing explanation for a warning about <code>:=</code> to <a>perldiag.pod</a></p>
</li>
<li><p>We removed a false claim in <a href="/cperl/perlunitut.html">perlunitut</a> that all text strings are Unicode strings in Perl.</p>
</li>
<li><p>We updated the Github mirror link in <a href="/cperl/perlrepository.html">perlrepository</a> to mirrors/perl, not github/perl</p>
</li>
<li><p>We fixed a minor error in <a>perl5114delta.pod</a>.</p>
</li>
<li><p>We replaced a mention of the now-obsolete <a>Switch.pm</a> with <i>given</i>/<i>when</i>.</p>
</li>
<li><p>We improved documentation about <i>$sitelibexp/sitecustomize.pl</i> in <a href="/cperl/perlrun.html">perlrun</a>.</p>
</li>
<li><p>We corrected <a>perlmodlib.pod</a> which had unintentionally omitted a number of modules.</p>
</li>
<li><p>We updated the documentation for 'require' in <a>perlfunc.pod</a> relating to putting Perl code in @INC.</p>
</li>
<li><p>We reinstated some erroneously-removed documentation about quotemeta in <a href="/cperl/perlfunc.html">perlfunc</a>.</p>
</li>
<li><p>We fixed an <i>a2p</i> example in <a>perlutil.pod</a>.</p>
</li>
<li><p>We filled in a blank in <a>perlport.pod</a> with the release date of Perl 5.12.</p>
</li>
<li><p>We fixed broken links in a number of perldelta files.</p>
</li>
<li><p>The documentation for <a>Carp.pm</a> incorrectly stated that the $Carp::Verbose variable makes cluck generate stack backtraces.</p>
</li>
<li><p>We fixed a number of typos in <a href="/cperl/lib/Pod/Functions.html">Pod::Functions</a></p>
</li>
<li><p>We improved documentation of case-changing functions in <a>perlfunc.pod</a></p>
</li>
<li><p>We corrected <a>perlgpl.pod</a> to contain the correct version of the GNU General Public License.</p>
</li>
</ul>
<h1 id="Testing">Testing</h1>
<h2 id="Testing-Improvements">Testing Improvements</h2>
<ul>
<li><p><i>t/op/sselect.t</i> is now less prone to clock jitter during timing checks on Windows.</p>
<p>sleep() time on Win32 may be rounded down to multiple of the clock tick interval.</p>
</li>
<li><p><i>lib/blib.t</i> and <i>lib/locale.t</i>: Fixes for test failures on Darwin/PPC</p>
</li>
<li><p><i>perl5db.t</i>: Fix for test failures when <code>Term::ReadLine::Gnu</code> is installed.</p>
</li>
</ul>
<h1 id="Installation-and-Configuration-Improvements">Installation and Configuration Improvements</h1>
<h2 id="Configuration-improvements">Configuration improvements</h2>
<ul>
<li><p>We updated <i>INSTALL</i> with notes about how to deal with broken <i>dbm.h</i> on OpenSUSE (and possibly other platforms)</p>
</li>
</ul>
<h1 id="Bug-Fixes">Bug Fixes</h1>
<ul>
<li><p>A bug in how we process filetest operations could cause a segfault. Filetests don't always expect an op on the stack, so we now use TOPs only if we're sure that we're not stat'ing the _ filehandle. This is indicated by OPf_KIDS (as checked in ck_ftst).</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=74542">http://rt.perl.org/rt3/Public/Bug/Display.html?id=74542</a></p>
</li>
<li><p>When deparsing a nextstate op that has both a change of package (relative to the previous nextstate) and a label, the package declaration is now emitted first, because it is syntactically impermissible for a label to prefix a package declaration.</p>
</li>
<li><p>XSUB.h now correctly redefines fgets under PERL_IMPLICIT_SYS</p>
<p>See also: <a href="http://rt.cpan.org/Public/Bug/Display.html?id=55049">http://rt.cpan.org/Public/Bug/Display.html?id=55049</a></p>
</li>
<li><p>utf8::is_utf8 now respects GMAGIC (e.g. $1)</p>
</li>
<li><p>XS code using <code>fputc()</code> or <code>fputs()</code>: on Windows could cause an error due to their arguments being swapped.</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=72704">http://rt.perl.org/rt3/Public/Bug/Display.html?id=72704</a></p>
</li>
<li><p>We fixed a small bug in lex_stuff_pvn() that caused spurious syntax errors in an obscure situation. It happened when stuffing was performed on the last line of a file and the line ended with a statement that lacked a terminating semicolon.</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=74006">http://rt.perl.org/rt3/Public/Bug/Display.html?id=74006</a></p>
</li>
<li><p>We fixed a bug that could cause \N{} constructs followed by a single . to be parsed incorrectly.</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=74978">http://rt.perl.org/rt3/Public/Bug/Display.html?id=74978</a></p>
</li>
<li><p>We fixed a bug that caused when(scalar) without an argument not to be treated as a syntax error.</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=74114">http://rt.perl.org/rt3/Public/Bug/Display.html?id=74114</a></p>
</li>
<li><p>We fixed a regression in the handling of labels immediately before string evals that was introduced in Perl 5.12.0.</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=74290">http://rt.perl.org/rt3/Public/Bug/Display.html?id=74290</a></p>
</li>
<li><p>We fixed a regression in case-insensitive matching of folded characters in regular expressions introduced in Perl 5.10.1.</p>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=72998">http://rt.perl.org/rt3/Public/Bug/Display.html?id=72998</a></p>
</li>
</ul>
<h1 id="Platform-Specific-Notes">Platform Specific Notes</h1>
<h2 id="HP-UX">HP-UX</h2>
<ul>
<li><p>Perl now allows -Duse64bitint without promoting to use64bitall on HP-UX</p>
</li>
</ul>
<h2 id="AIX">AIX</h2>
<ul>
<li><p>Perl now builds on AIX 4.2</p>
<p>The changes required work around AIX 4.2s' lack of support for IPv6, and limited support for POSIX <code>sigaction()</code>.</p>
</li>
</ul>
<h2 id="FreeBSD-7">FreeBSD 7</h2>
<ul>
<li><p>FreeBSD 7 no longer contains <i>/usr/bin/objformat</i>. At build time, Perl now skips the <i>objformat</i> check for versions 7 and higher and assumes ELF.</p>
</li>
</ul>
<h2 id="VMS">VMS</h2>
<ul>
<li><p>It's now possible to build extensions on older (pre 7.3-2) VMS systems.</p>
<p>DCL symbol length was limited to 1K up until about seven years or so ago, but there was no particularly deep reason to prevent those older systems from configuring and building Perl.</p>
</li>
<li><p>We fixed the previously-broken <code>-Uuseperlio</code> build on VMS.</p>
<p>We were checking a variable that doesn't exist in the non-default case of disabling perlio. Now we only look at it when it exists.</p>
</li>
<li><p>We fixed the -Uuseperlio command-line option in configure.com.</p>
<p>Formerly it only worked if you went through all the questions interactively and explicitly answered no.</p>
</li>
</ul>
<h1 id="Known-Problems">Known Problems</h1>
<ul>
<li><p><code>List::Util::first</code> misbehaves in the presence of a lexical <code>$_</code> (typically introduced by <code>my $_</code> or implicitly by <code>given</code>). The variable which gets set for each iteration is the package variable <code>$_</code>, not the lexical <code>$_</code>.</p>
<p>A similar issue may occur in other modules that provide functions which take a block as their first argument, like</p>
<pre><code> foo { ... $_ ...} list</code></pre>
<p>See also: <a href="http://rt.perl.org/rt3/Public/Bug/Display.html?id=67694">http://rt.perl.org/rt3/Public/Bug/Display.html?id=67694</a></p>
</li>
<li><p><code>Module::Load::Conditional</code> and <code>version</code> have an unfortunate interaction which can cause <code>CPANPLUS</code> to crash when it encounters an unparseable version string. Upgrading to <code>CPANPLUS</code> 0.9004 or <code>Module::Load::Conditional</code> 0.38 from CPAN will resolve this issue.</p>
</li>
</ul>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>Perl 5.12.1 represents approximately four weeks of development since Perl 5.12.0 and contains approximately 4,000 lines of changes across 142 files from 28 authors.</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.12.1:</p>
<p>Ævar Arnfjörð Bjarmason, Chris Williams, chromatic, Craig A. Berry, David Golden, Father Chrysostomos, Florian Ragwitz, Frank Wiegand, Gene Sullivan, Goro Fuji, H.Merijn Brand, James E Keenan, Jan Dubois, Jesse Vincent, Josh ben Jore, Karl Williamson, Leon Brocard, Michael Schwern, Nga Tang Chan, Nicholas Clark, Niko Tyni, Philippe Bruhat, Rafael Garcia-Suarez, Ricardo Signes, Steffen Mueller, Todd Rinaldo, Vincent Pit and Zefram.</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 http://rt.perl.org/perlbug/ . 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 <b>perlbug</b> 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>