Install Perl 5.8.8
[msysgit.git] / mingw / html / pod / perl587delta.html
blob2ac8601742758af6d931d91683f70a8adb014448
1 <?xml version="1.0" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>perldelta - what is new for perl v5.8.7</title>
6 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7 <link rev="made" href="mailto:" />
8 </head>
10 <body style="background-color: white">
11 <table border="0" width="100%" cellspacing="0" cellpadding="3">
12 <tr><td class="block" style="background-color: #cccccc" valign="middle">
13 <big><strong><span class="block">&nbsp;perldelta - what is new for perl v5.8.7</span></strong></big>
14 </td></tr>
15 </table>
17 <p><a name="__index__"></a></p>
18 <!-- INDEX BEGIN -->
20 <ul>
22 <li><a href="#name">NAME</a></li>
23 <li><a href="#description">DESCRIPTION</a></li>
24 <li><a href="#incompatible_changes">Incompatible Changes</a></li>
25 <li><a href="#core_enhancements">Core Enhancements</a></li>
26 <ul>
28 <li><a href="#unicode_character_database_4_1_0">Unicode Character Database 4.1.0</a></li>
29 <li><a href="#suidperl_less_insecure">suidperl less insecure</a></li>
30 <li><a href="#optional_site_customization_script">Optional site customization script</a></li>
31 <li><a href="#config_pm_is_now_much_smaller_"><code>Config.pm</code> is now much smaller.</a></li>
32 </ul>
34 <li><a href="#modules_and_pragmata">Modules and Pragmata</a></li>
35 <li><a href="#utility_changes">Utility Changes</a></li>
36 <ul>
38 <li><a href="#find2perl_enhancements">find2perl enhancements</a></li>
39 </ul>
41 <li><a href="#performance_enhancements">Performance Enhancements</a></li>
42 <li><a href="#installation_and_configuration_improvements">Installation and Configuration Improvements</a></li>
43 <li><a href="#selected_bug_fixes">Selected Bug Fixes</a></li>
44 <li><a href="#new_or_changed_diagnostics">New or Changed Diagnostics</a></li>
45 <li><a href="#changed_internals">Changed Internals</a></li>
46 <li><a href="#known_problems">Known Problems</a></li>
47 <li><a href="#platform_specific_problems">Platform Specific Problems</a></li>
48 <li><a href="#reporting_bugs">Reporting Bugs</a></li>
49 <li><a href="#see_also">SEE ALSO</a></li>
50 </ul>
51 <!-- INDEX END -->
53 <hr />
54 <p>
55 </p>
56 <h1><a name="name">NAME</a></h1>
57 <p>perldelta - what is new for perl v5.8.7</p>
58 <p>
59 </p>
60 <hr />
61 <h1><a name="description">DESCRIPTION</a></h1>
62 <p>This document describes differences between the 5.8.6 release and
63 the 5.8.7 release.</p>
64 <p>
65 </p>
66 <hr />
67 <h1><a name="incompatible_changes">Incompatible Changes</a></h1>
68 <p>There are no changes incompatible with 5.8.6.</p>
69 <p>
70 </p>
71 <hr />
72 <h1><a name="core_enhancements">Core Enhancements</a></h1>
73 <p>
74 </p>
75 <h2><a name="unicode_character_database_4_1_0">Unicode Character Database 4.1.0</a></h2>
76 <p>The copy of the Unicode Character Database included in Perl 5.8 has
77 been updated to 4.1.0 from 4.0.1. See
78 <a href="http://www.unicode.org/versions/Unicode4.1.0/#NotableChanges">http://www.unicode.org/versions/Unicode4.1.0/#NotableChanges</a> for the
79 notable changes.</p>
80 <p>
81 </p>
82 <h2><a name="suidperl_less_insecure">suidperl less insecure</a></h2>
83 <p>A pair of exploits in <code>suidperl</code> involving debugging code have been closed.</p>
84 <p>For new projects the core perl team strongly recommends that you use
85 dedicated, single purpose security tools such as <code>sudo</code> in preference to
86 <code>suidperl</code>.</p>
87 <p>
88 </p>
89 <h2><a name="optional_site_customization_script">Optional site customization script</a></h2>
90 <p>The perl interpreter can be built to allow the use of a site customization
91 script. By default this is not enabled, to be consistent with previous perl
92 releases. To use this, add <code>-Dusesitecustomize</code> to the command line flags
93 when running the <code>Configure</code> script. See also <a href="file://C|\msysgit\mingw\html/pod/perlrun.html#f">-f in the perlrun manpage</a>.</p>
94 <p>
95 </p>
96 <h2><a name="config_pm_is_now_much_smaller_"><code>Config.pm</code> is now much smaller.</a></h2>
97 <p><code>Config.pm</code> is now about 3K rather than 32K, with the infrequently used
98 code and <code>%Config</code> values loaded on demand. This is transparent to the
99 programmer, but means that most code will save parsing and loading 29K of
100 script (for example, code that uses <code>File::Find</code>).</p>
102 </p>
103 <hr />
104 <h1><a name="modules_and_pragmata">Modules and Pragmata</a></h1>
105 <ul>
106 <li>
107 <p>B upgraded to version 1.09</p>
108 </li>
109 <li>
110 <p>base upgraded to version 2.07</p>
111 </li>
112 <li>
113 <p>bignum upgraded to version 0.17</p>
114 </li>
115 <li>
116 <p>bytes upgraded to version 1.02</p>
117 </li>
118 <li>
119 <p>Carp upgraded to version 1.04</p>
120 </li>
121 <li>
122 <p>CGI upgraded to version 3.10</p>
123 </li>
124 <li>
125 <p>Class::ISA upgraded to version 0.33</p>
126 </li>
127 <li>
128 <p>Data::Dumper upgraded to version 2.121_02</p>
129 </li>
130 <li>
131 <p>DB_File upgraded to version 1.811</p>
132 </li>
133 <li>
134 <p>Devel::PPPort upgraded to version 3.06</p>
135 </li>
136 <li>
137 <p>Digest upgraded to version 1.10</p>
138 </li>
139 <li>
140 <p>Encode upgraded to version 2.10</p>
141 </li>
142 <li>
143 <p>FileCache upgraded to version 1.05</p>
144 </li>
145 <li>
146 <p>File::Path upgraded to version 1.07</p>
147 </li>
148 <li>
149 <p>File::Temp upgraded to version 0.16</p>
150 </li>
151 <li>
152 <p>IO::File upgraded to version 1.11</p>
153 </li>
154 <li>
155 <p>IO::Socket upgraded to version 1.28</p>
156 </li>
157 <li>
158 <p>Math::BigInt upgraded to version 1.77</p>
159 </li>
160 <li>
161 <p>Math::BigRat upgraded to version 0.15</p>
162 </li>
163 <li>
164 <p>overload upgraded to version 1.03</p>
165 </li>
166 <li>
167 <p>PathTools upgraded to version 3.05</p>
168 </li>
169 <li>
170 <p>Pod::HTML upgraded to version 1.0503</p>
171 </li>
172 <li>
173 <p>Pod::Perldoc upgraded to version 3.14</p>
174 </li>
175 <li>
176 <p>Pod::LaTeX upgraded to version 0.58</p>
177 </li>
178 <li>
179 <p>Pod::Parser upgraded to version 1.30</p>
180 </li>
181 <li>
182 <p>Symbol upgraded to version 1.06</p>
183 </li>
184 <li>
185 <p>Term::ANSIColor upgraded to version 1.09</p>
186 </li>
187 <li>
188 <p>Test::Harness upgraded to version 2.48</p>
189 </li>
190 <li>
191 <p>Test::Simple upgraded to version 0.54</p>
192 </li>
193 <li>
194 <p>Text::Wrap upgraded to version 2001.09293, to fix a bug when <code>wrap()</code> was
195 called with a non-space separator.</p>
196 </li>
197 <li>
198 <p>threads::shared upgraded to version 0.93</p>
199 </li>
200 <li>
201 <p>Time::HiRes upgraded to version 1.66</p>
202 </li>
203 <li>
204 <p>Time::Local upgraded to version 1.11</p>
205 </li>
206 <li>
207 <p>Unicode::Normalize upgraded to version 0.32</p>
208 </li>
209 <li>
210 <p>utf8 upgraded to version 1.05</p>
211 </li>
212 <li>
213 <p>Win32 upgraded to version 0.24, which provides Win32::GetFileVersion</p>
214 </li>
215 </ul>
217 </p>
218 <hr />
219 <h1><a name="utility_changes">Utility Changes</a></h1>
221 </p>
222 <h2><a name="find2perl_enhancements">find2perl enhancements</a></h2>
223 <p><code>find2perl</code> has new options <code>-iname</code>, <code>-path</code> and <code>-ipath</code>.</p>
225 </p>
226 <hr />
227 <h1><a name="performance_enhancements">Performance Enhancements</a></h1>
228 <p>The internal pointer mapping hash used during ithreads cloning now uses an
229 arena for memory allocation. In tests this reduced ithreads cloning time by
230 about 10%.</p>
232 </p>
233 <hr />
234 <h1><a name="installation_and_configuration_improvements">Installation and Configuration Improvements</a></h1>
235 <ul>
236 <li>
237 <p>The Win32 ``dmake'' makefile.mk has been updated to make it compatible
238 with the latest versions of dmake.</p>
239 </li>
240 <li>
241 <p><code>PERL_MALLOC</code>, <code>DEBUG_MSTATS</code>, <code>PERL_HASH_SEED_EXPLICIT</code> and <code>NO_HASH_SEED</code>
242 should now work in Win32 makefiles.</p>
243 </li>
244 </ul>
246 </p>
247 <hr />
248 <h1><a name="selected_bug_fixes">Selected Bug Fixes</a></h1>
249 <ul>
250 <li>
251 <p>The <code>socket()</code> function on Win32 has been fixed so that it is able to use
252 transport providers which specify a protocol of 0 (meaning any protocol
253 is allowed) once more. (This was broken in 5.8.6, and typically caused
254 the use of ICMP sockets to fail.)</p>
255 </li>
256 <li>
257 <p>Another obscure bug involving <a href="file://C|\msysgit\mingw\html/pod/perlvar.html#item_substr"><code>substr</code></a> and UTF-8 caused by bad internal
258 offset caching has been identified and fixed.</p>
259 </li>
260 <li>
261 <p>A bug involving the loading of UTF-8 tables by the regexp engine has been
262 fixed - code such as <code>&quot;\x{100}&quot; =~ /[[:print:]]/</code> will no longer give
263 corrupt results.</p>
264 </li>
265 <li>
266 <p>Case conversion operations such as <a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_uc"><code>uc</code></a> on a long Unicode string could
267 exhaust memory. This has been fixed.</p>
268 </li>
269 <li>
270 <p><a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_index"><code>index</code></a>/<a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_rindex"><code>rindex</code></a> were buggy for some combinations of Unicode and
271 non-Unicode data. This has been fixed.</p>
272 </li>
273 <li>
274 <p><a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_read"><code>read</code></a> (and presumably <a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_sysread"><code>sysread</code></a>) would expose the UTF-8 internals when
275 reading from a byte oriented file handle into a UTF-8 scalar. This has
276 been fixed.</p>
277 </li>
278 <li>
279 <p>Several <code>pack</code>/<code>unpack</code> bug fixes:</p>
280 <ul>
281 <li>
282 <p>Checksums with <a href="file://C|\msysgit\mingw\html/pod/perlguts.html#item_b"><code>b</code></a> or <code>B</code> formats were broken.</p>
283 </li>
284 <li>
285 <p><code>unpack</code> checksums could overflow with the <code>C</code> format.</p>
286 </li>
287 <li>
288 <p><code>U0</code> and <code>C0</code> are now scoped to <code>()</code> <code>pack</code> sub-templates.</p>
289 </li>
290 <li>
291 <p>Counted length prefixes now don't change <code>C0</code>/<code>U0</code> mode.</p>
292 </li>
293 <li>
294 <p><code>pack</code> <code>Z0</code> used to destroy the preceding character.</p>
295 </li>
296 <li>
297 <p><code>P</code>/<a href="file://C|\msysgit\mingw\html/pod/perlguts.html#item_p"><code>p</code></a> <code>pack</code> formats used to only recognise literal <a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_undef"><code>undef</code></a></p>
298 </li>
299 </ul>
300 <li>
301 <p>Using closures with ithreads could cause perl to crash. This was due to
302 failure to correctly lock internal OP structures, and has been fixed.</p>
303 </li>
304 <li>
305 <p>The return value of <a href="file://C|\msysgit\mingw\html/pod/perlfunc.html#item_close"><code>close</code></a> now correctly reflects any file errors that
306 occur while flushing the handle's data, instead of just giving failure if
307 the actual underlying file close operation failed.</p>
308 </li>
309 <li>
310 <p><code>not() || 1</code> used to segfault. <code>not()</code> now behaves like <code>not(0)</code>, which was
311 the pre 5.6.0 behaviour.</p>
312 </li>
313 <li>
314 <p><code>h2ph</code> has various enhancements to cope with constructs in header files that
315 used to result in incorrect or invalid output.</p>
316 </li>
317 </ul>
319 </p>
320 <hr />
321 <h1><a name="new_or_changed_diagnostics">New or Changed Diagnostics</a></h1>
322 <p>There is a new taint error, ``%ENV is aliased to %s''. This error is thrown
323 when taint checks are enabled and when <code>*ENV</code> has been aliased, so that
324 <a href="file://C|\msysgit\mingw\html/pod/perlvar.html#item__env"><code>%ENV</code></a> has no env-magic anymore and hence the environment cannot be verified
325 as taint-free.</p>
326 <p>The internals of <code>pack</code> and <code>unpack</code> have been updated. All legitimate
327 templates should work as before, but there may be some changes in the error
328 reported for complex failure cases. Any behaviour changes for non-error cases
329 are bugs, and should be reported.</p>
331 </p>
332 <hr />
333 <h1><a name="changed_internals">Changed Internals</a></h1>
334 <p>There has been a fair amount of refactoring of the <code>C</code> source code, partly to
335 make it tidier and more maintainable. The resulting object code and the
336 <code>perl</code> binary may well be smaller than 5.8.6, and hopefully faster in some
337 cases, but apart from this there should be no user-detectable changes.</p>
338 <p><a href="file://C|\msysgit\mingw\html/pod/perlvar.html#item____utf8locale_"><code>${^UTF8LOCALE}</code></a> has been added to give perl space access to <code>PL_utf8locale</code>.</p>
339 <p>The size of the arenas used to allocate SV heads and most SV bodies can now
340 be changed at compile time. The old size was 1008 bytes, the new default size
341 is 4080 bytes.</p>
343 </p>
344 <hr />
345 <h1><a name="known_problems">Known Problems</a></h1>
346 <p>Unicode strings returned from overloaded operators can be buggy. This is a
347 long standing bug reported since 5.8.6 was released, but we do not yet have
348 a suitable fix for it.</p>
350 </p>
351 <hr />
352 <h1><a name="platform_specific_problems">Platform Specific Problems</a></h1>
353 <p>On UNICOS, lib/Math/BigInt/t/bigintc.t hangs burning CPU.
354 ext/B/t/bytecode.t and ext/Socket/t/socketpair.t both fail tests.
355 These are unlikely to be resolved, as our valiant UNICOS porter's last
356 Cray is being decommissioned.</p>
358 </p>
359 <hr />
360 <h1><a name="reporting_bugs">Reporting Bugs</a></h1>
361 <p>If you find what you think is a bug, you might check the articles
362 recently posted to the comp.lang.perl.misc newsgroup and the perl
363 bug database at <a href="http://bugs.perl.org.">http://bugs.perl.org.</a> There may also be
364 information at <a href="http://www.perl.org,">http://www.perl.org,</a> the Perl Home Page.</p>
365 <p>If you believe you have an unreported bug, please run the <strong>perlbug</strong>
366 program included with your release. Be sure to trim your bug down
367 to a tiny but sufficient test case. Your bug report, along with the
368 output of <code>perl -V</code>, will be sent off to <a href="mailto:perlbug@perl.org">perlbug@perl.org</a> to be
369 analysed by the Perl porting team. You can browse and search
370 the Perl 5 bugs at <a href="http://bugs.perl.org/">http://bugs.perl.org/</a></p>
372 </p>
373 <hr />
374 <h1><a name="see_also">SEE ALSO</a></h1>
375 <p>The <em>Changes</em> file for exhaustive details on what changed.</p>
376 <p>The <em>INSTALL</em> file for how to build Perl.</p>
377 <p>The <em>README</em> file for general stuff.</p>
378 <p>The <em>Artistic</em> and <em>Copying</em> files for copyright information.</p>
379 <table border="0" width="100%" cellspacing="0" cellpadding="3">
380 <tr><td class="block" style="background-color: #cccccc" valign="middle">
381 <big><strong><span class="block">&nbsp;perldelta - what is new for perl v5.8.7</span></strong></big>
382 </td></tr>
383 </table>
385 </body>
387 </html>