Commit | Line | Data |
fa7da8f7 |
1 | =encoding utf8 |
2 | |
7120b314 |
3 | =head1 NAME |
4 | |
5a00ee6a |
5 | perl5110delta - what is new for perl v5.11.0 |
7120b314 |
6 | |
7 | =head1 DESCRIPTION |
8 | |
5a00ee6a |
9 | This document describes differences between the 5.10.0 release and |
10 | the 5.11.0 development release. |
7120b314 |
11 | |
12 | =head1 Incompatible Changes |
13 | |
6fa80ea2 |
14 | =head2 Unicode interpretation of \w, \d, \s, and the POSIX character classes redefined. |
15 | |
16 | Previous versions of Perl tried to map POSIX style character class definitions onto |
17 | Unicode property names so that patterns would "dwim" when matches were made against latin-1 or |
18 | unicode strings. This proved to be a mistake, breaking character class negation, causing |
19 | forward compatibility problems (as Unicode keeps updating their property definitions and adding |
20 | new characters), and other problems. |
21 | |
22 | Therefore we have now defined a new set of artificial "unicode" property names which will be |
23 | used to do unicode matching of patterns using POSIX style character classes and perl short-form |
24 | escape character classes like \w and \d. |
25 | |
26 | The key change here is that \d will no longer match every digit in the unicode standard |
27 | (there are thousands) nor will \w match every word character in the standard, instead they |
28 | will match precisely their POSIX or Perl definition. |
29 | |
30 | Those needing to match based on Unicode properties can continue to do so by using the \p{} syntax |
31 | to match whichever property they like, including the new artificial definitions. |
32 | |
33 | B<NOTE:> This is a backwards incompatible no-warning change in behaviour. If you are upgrading |
34 | and you process large volumes of text look for POSIX and Perl style character classes and |
35 | change them to the relevent property name (by removing the word 'Posix' from the current name). |
36 | |
37 | The following table maps the POSIX character class names, the escapes and the old and new |
38 | Unicode property mappings: |
39 | |
40 | POSIX Esc Class New-Property ! Old-Property |
41 | ----------------------------------------------+------------- |
42 | alnum [0-9A-Za-z] IsPosixAlnum ! IsAlnum |
43 | alpha [A-Za-z] IsPosixAlpha ! IsAlpha |
44 | ascii [\000-\177] IsASCII = IsASCII |
45 | blank [\011 ] IsPosixBlank ! |
46 | cntrl [\0-\37\177] IsPosixCntrl ! IsCntrl |
47 | digit \d [0-9] IsPosixDigit ! IsDigit |
48 | graph [!-~] IsPosixGraph ! IsGraph |
49 | lower [a-z] IsPosixLower ! IsLower |
50 | print [ -~] IsPosixPrint ! IsPrint |
51 | punct [!-/:-@[-`{-~] IsPosixPunct ! IsPunct |
52 | space [\11-\15 ] IsPosixSpace ! IsSpace |
53 | \s [\11\12\14\15 ] IsPerlSpace ! IsSpacePerl |
54 | upper [A-Z] IsPosixUpper ! IsUpper |
55 | word \w [0-9A-Z_a-z] IsPerlWord ! IsWord |
56 | xdigit [0-9A-Fa-f] IsXDigit = IsXDigit |
57 | |
58 | If you wish to build perl with the old mapping you may do so by setting |
59 | |
60 | #define PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS 1 |
61 | |
62 | in regcomp.h, and then setting |
63 | |
64 | PERL_TEST_LEGACY_POSIX_CC |
65 | |
66 | to true your enviornment when testing. |
67 | |
68 | |
ad1d1c50 |
69 | =head2 In @INC, move ARCHLIB and PRIVLIB after the current version's site_perl and vendor_perl. |
70 | |
8b8da387 |
71 | =head2 Switch statement changes |
72 | |
73 | The handling of complex expressions by the C<given>/C<when> switch |
a98ccf1e |
74 | statement has been enhanced. These enhancements are also available in |
75 | 5.10.1 and subsequent 5.10 releases. There are two new cases where C<when> now |
412304fb |
76 | interprets its argument as a boolean, instead of an expression to be used |
8b8da387 |
77 | in a smart match: |
78 | |
79 | =over 4 |
80 | |
8b8da387 |
81 | =item flip-flop operators |
82 | |
98814a2b |
83 | The C<..> and C<...> flip-flop operators are now evaluated in boolean |
84 | context, following their usual semantics; see L<perlop/"Range Operators">. |
85 | |
86 | Note that, as in perl 5.10.0, C<when (1..10)> will not work to test |
87 | whether a given value is an integer between 1 and 10; you should use |
88 | C<when ([1..10])> instead (note the array reference). |
89 | |
90 | However, contrary to 5.10.0, evaluating the flip-flop operators in boolean |
91 | context ensures it can now be useful in a C<when()>, notably for |
92 | implementing bistable conditions, like in: |
93 | |
5a00ee6a |
94 | when (/^=begin/ .. /^=end/) { |
95 | # do something |
96 | } |
8b8da387 |
97 | |
98 | =item defined-or operator |
99 | |
100 | A compound expression involving the defined-or operator, as in |
101 | C<when (expr1 // expr2)>, will be treated as boolean if the first |
102 | expression is boolean. (This just extends the existing rule that applies |
103 | to the regular or operator, as in C<when (expr1 || expr2)>.) |
104 | |
105 | =back |
106 | |
98814a2b |
107 | The next section details more changes brought to the semantics to |
8b8da387 |
108 | the smart match operator, that naturally also modify the behaviour |
109 | of the switch statements where smart matching is implicitly used. |
a98ccf1e |
110 | These changers were also made for the 5.10.1 release, and will remain in |
111 | subsequent 5.10 releases. |
8b8da387 |
112 | |
113 | =head2 Smart match changes |
114 | |
115 | =head3 Changes to type-based dispatch |
116 | |
117 | The smart match operator C<~~> is no longer commutative. The behaviour of |
118 | a smart match now depends primarily on the type of its right hand |
5a00ee6a |
119 | argument. Moreover, its semantics have been adjusted for greater |
ee18cc6c |
120 | consistency or usefulness in several cases. While the general backwards |
121 | compatibility is maintained, several changes must be noted: |
8b8da387 |
122 | |
123 | =over 4 |
124 | |
125 | =item * |
126 | |
127 | Code references with an empty prototype are no longer treated specially. |
128 | They are passed an argument like the other code references (even if they |
129 | choose to ignore it). |
130 | |
131 | =item * |
132 | |
133 | C<%hash ~~ sub {}> and C<@array ~~ sub {}> now test that the subroutine |
9091a618 |
134 | returns a true value for each key of the hash (or element of the |
8b8da387 |
135 | array), instead of passing the whole hash or array as a reference to |
136 | the subroutine. |
137 | |
138 | =item * |
139 | |
ee18cc6c |
140 | Due to the commutativity breakage, code references are no longer |
141 | treated specially when appearing on the left of the C<~~> operator, |
142 | but like any vulgar scalar. |
143 | |
144 | =item * |
145 | |
8b8da387 |
146 | C<undef ~~ %hash> is always false (since C<undef> can't be a key in a |
147 | hash). No implicit conversion to C<""> is done (as was the case in perl |
148 | 5.10.0). |
149 | |
150 | =item * |
151 | |
152 | C<$scalar ~~ @array> now always distributes the smart match across the |
153 | elements of the array. It's true if one element in @array verifies |
154 | C<$scalar ~~ $element>. This is a generalization of the old behaviour |
155 | that tested whether the array contained the scalar. |
156 | |
157 | =back |
158 | |
159 | The full dispatch table for the smart match operator is given in |
160 | L<perlsyn/"Smart matching in detail">. |
161 | |
162 | =head3 Smart match and overloading |
163 | |
164 | According to the rule of dispatch based on the rightmost argument type, |
165 | when an object overloading C<~~> appears on the right side of the |
166 | operator, the overload routine will always be called (with a 3rd argument |
167 | set to a true value, see L<overload>.) However, when the object will |
168 | appear on the left, the overload routine will be called only when the |
9091a618 |
169 | rightmost argument is a simple scalar. This way distributivity of smart match |
8b8da387 |
170 | across arrays is not broken, as well as the other behaviours with complex |
171 | types (coderefs, hashes, regexes). Thus, writers of overloading routines |
ee18cc6c |
172 | for smart match mostly need to worry only with comparing against a scalar, |
173 | and possibly with stringification overloading; the other common cases |
174 | will be automatically handled consistently. |
8b8da387 |
175 | |
176 | C<~~> will now refuse to work on objects that do not overload it (in order |
665f5e98 |
177 | to avoid relying on the object's underlying structure). (However, if the |
178 | object overloads the stringification or the numification operators, and |
179 | if overload fallback is active, it will be used instead, as usual.) |
8b8da387 |
180 | |
f71d6157 |
181 | =head2 Labels can't be keywords |
182 | |
183 | Labels used as targets for the C<goto>, C<last>, C<next> or C<redo> |
184 | statements cannot be keywords anymore. This restriction will prevent |
185 | potential confusion between the C<goto LABEL> and C<goto EXPR> syntaxes: |
186 | for example, a statement like C<goto print> would jump to a label whose |
7a4b5c08 |
187 | name would be the return value of C<print()>, (usually 1), instead of a |
f71d6157 |
188 | label named C<print>. Moreover, the other control flow statements |
189 | would just ignore any keyword passed to them as a label name. Since |
190 | such labels cannot be defined anymore, this kind of error will be |
191 | avoided. |
192 | |
5a00ee6a |
193 | =head2 Other incompatible changes |
194 | |
195 | =over 4 |
196 | |
197 | =item * |
198 | |
199 | The semantics of C<use feature :5.10*> have changed slightly. |
200 | See L<"Modules and Pragmata"> for more information. |
201 | |
202 | =item * |
203 | |
204 | It is now a run-time error to use the smart match operator C<~~> |
205 | with an object that has no overload defined for it. (This way |
206 | C<~~> will not break encapsulation by matching against the |
207 | object's internal representation as a reference.) |
208 | |
209 | =item * |
210 | |
211 | The version control system used for the development of the perl |
212 | interpreter has been switched from Perforce to git. This is mainly an |
213 | internal issue that only affects people actively working on the perl core; |
214 | but it may have minor external visibility, for example in some of details |
215 | of the output of C<perl -V>. See L<perlrepository> for more information. |
216 | |
217 | =item * |
218 | |
219 | The internal structure of the C<ext/> directory in the perl source has |
220 | been reorganised. In general, a module C<Foo::Bar> whose source was |
221 | stored under F<ext/Foo/Bar/> is now located under F<ext/Foo-Bar/>. Also, |
429ee0aa |
222 | nearly all dual-life modules have been moved from F<lib/> to F<ext/>. This |
223 | is purely a source tarball change, and should make no difference to the |
224 | compilation or installation of perl, unless you have a very customised build |
225 | process that explicitly relies on this structure, or which hard-codes the |
226 | C<nonxs_ext> F<Configure> parameter. Specifically, this change does not by |
227 | default alter the location of any files in the final installation. |
5a00ee6a |
228 | |
229 | =item * |
230 | |
231 | As part of the C<Test::Harness> 2.x to 3.x upgrade, the experimental |
232 | C<Test::Harness::Straps> module has been removed. |
233 | See L</"Updated Modules"> for more details. |
234 | |
235 | =item * |
236 | |
237 | As part of the C<ExtUtils::MakeMaker> upgrade, the |
238 | C<ExtUtils::MakeMaker::bytes> and C<ExtUtils::MakeMaker::vmsish> modules |
239 | have been removed from this distribution. |
240 | |
241 | =item * |
242 | |
243 | C<Module::CoreList> no longer contains the C<%:patchlevel> hash. |
244 | |
245 | =item * |
246 | |
247 | This one is actually a change introduced in 5.10.0, but it was missed |
248 | from that release's perldelta, so it is mentioned here instead. |
249 | |
250 | A bugfix related to the handling of the C</m> modifier and C<qr> resulted |
251 | in a change of behaviour between 5.8.x and 5.10.0: |
252 | |
253 | # matches in 5.8.x, doesn't match in 5.10.0 |
254 | $re = qr/^bar/; "foo\nbar" =~ /$re/m; |
255 | |
ad1d1c50 |
256 | =item * |
257 | |
258 | C<length undef> now returns undef. |
259 | |
5a00ee6a |
260 | =back |
261 | |
7120b314 |
262 | =head1 Core Enhancements |
263 | |
5a00ee6a |
264 | =head2 Unicode Character Database 5.1.0 |
265 | |
3141b5e1 |
266 | The copy of the Unicode Character Database included in Perl 5.11.0 has |
5a00ee6a |
267 | been updated to 5.1.0 from 5.0.0. See |
268 | L<http://www.unicode.org/versions/Unicode5.1.0/#Notable_Changes> for the |
269 | notable changes. |
270 | |
271 | =head2 A proper interface for pluggable Method Resolution Orders |
272 | |
3141b5e1 |
273 | As of Perl 5.11.0 there is a new interface for plugging and using method |
5a00ee6a |
274 | resolution orders other than the default (linear depth first search). |
275 | The C3 method resolution order added in 5.10.0 has been re-implemented as |
276 | a plugin, without changing its Perl-space interface. See L<perlmroapi> for |
277 | more information. |
278 | |
ef55af2a |
279 | =head2 The C<overloading> pragma |
1839a850 |
280 | |
281 | This pragma allows you to lexically disable or enable overloading |
282 | for some or all operations. (Yuval Kogman) |
283 | |
71e9c532 |
284 | =head2 C<\N> regex escape |
285 | |
286 | A new regex escape has been added, C<\N>. It will match any character that |
287 | is not a newline, independently from the presence or absence of the single |
288 | line match modifier C</s>. (If C<\N> is followed by an opening brace and |
289 | by a letter, perl will still assume that a Unicode character name is |
290 | coming, so compatibility is preserved.) (Rafael Garcia-Suarez) |
291 | |
4b3db487 |
292 | =head2 Implicit strictures |
293 | |
294 | Using the C<use VERSION> syntax with a version number greater or equal |
295 | to 5.11.0 will also lexically enable strictures just like C<use strict> |
296 | would do (in addition to enabling features.) So, the following: |
297 | |
298 | use 5.11.0; |
299 | |
300 | will now imply: |
301 | |
302 | use strict; |
303 | use feature ':5.11'; |
304 | |
5ee651a9 |
305 | =head2 Parallel tests |
306 | |
307 | The core distribution can now run its regression tests in parallel on |
308 | Unix-like platforms. Instead of running C<make test>, set C<TEST_JOBS> in |
309 | your environment to the number of tests to run in parallel, and run |
310 | C<make test_harness>. On a Bourne-like shell, this can be done as |
311 | |
312 | TEST_JOBS=3 make test_harness # Run 3 tests in parallel |
313 | |
314 | An environment variable is used, rather than parallel make itself, because |
315 | L<TAP::Harness> needs to be able to schedule individual non-conflicting test |
316 | scripts itself, and there is no standard interface to C<make> utilities to |
317 | interact with their job schedulers. |
318 | |
5a00ee6a |
319 | Note that currently some test scripts may fail when run in parallel (most |
320 | notably C<ext/IO/t/io_dir.t>). If necessary run just the failing scripts |
321 | again sequentially and see if the failures go away. |
322 | |
044c880b |
323 | =head2 The C<...> operator |
324 | |
325 | A new operator, C<...>, nicknamed the Yada Yada operator, has been added. |
326 | It is intended to mark placeholder code, that is not yet implemented. |
327 | See L<perlop/"Yada Yada Operator">. (chromatic) |
328 | |
5a00ee6a |
329 | =head2 DTrace support |
330 | |
331 | Some support for DTrace has been added. See "DTrace support" in F<INSTALL>. |
332 | |
333 | =head2 Support for C<configure_requires> in CPAN module metadata |
334 | |
335 | Both C<CPAN> and C<CPANPLUS> now support the C<configure_requires> keyword |
038a5866 |
336 | in the F<META.yml> metadata file included in most recent CPAN distributions. |
5a00ee6a |
337 | This allows distribution authors to specify configuration prerequisites that |
338 | must be installed before running F<Makefile.PL> or F<Build.PL>. |
339 | |
340 | See the documentation for C<ExtUtils::MakeMaker> or C<Module::Build> for more |
341 | on how to specify C<configure_requires> when creating a distribution for CPAN. |
342 | |
ad1d1c50 |
343 | =head2 The C<each> function can now operate on arrays |
344 | |
345 | =head2 Perl's core time-related functions are now Y2038 compliand |
346 | |
347 | =head2 The variable C<$,> may now be tied |
348 | |
349 | =head2 // now behaves like || in when clauses |
350 | |
351 | =head2 You can now set C<-W> from the C<PERL5OPT> environment varialbe |
352 | |
7120b314 |
353 | =head1 Modules and Pragmata |
354 | |
5a00ee6a |
355 | =head2 New Modules and Pragmata |
356 | |
357 | =over 4 |
358 | |
359 | =item C<autodie> |
360 | |
361 | This is a new lexically-scoped alternative for the C<Fatal> module. |
362 | The bundled version is 2.06_01. Note that in this release, using a string |
363 | eval when C<autodie> is in effect can cause the autodie behaviour to leak |
364 | into the surrounding scope. See L<autodie/"BUGS"> for more details. |
365 | |
366 | =item C<Compress::Raw::Bzip2> |
367 | |
368 | This has been added to the core (version 2.020). |
369 | |
370 | =item C<parent> |
371 | |
372 | This pragma establishes an ISA relationship with base classes at compile |
373 | time. It provides the key feature of C<base> without the feature creep. |
374 | |
375 | =item C<Parse::CPAN::Meta> |
376 | |
377 | This has been added to the core (version 1.39). |
378 | |
379 | =back |
380 | |
1839a850 |
381 | =head2 Pragmata Changes |
382 | |
383 | =over 4 |
384 | |
385 | =item C<overloading> |
386 | |
387 | See L</"The C<overloading> pragma"> above. |
388 | |
5a00ee6a |
389 | =item C<attributes> |
390 | |
391 | Upgraded from version 0.08 to 0.09. |
392 | |
393 | =item C<attrs> |
394 | |
42f099ed |
395 | The C<attrs> pragma has been removed. It had been marked as deprecated since |
396 | 5.6.0. |
5a00ee6a |
397 | |
398 | =item C<base> |
399 | |
400 | Upgraded from version 2.13 to 2.14. See L<parent> for a replacement. |
401 | |
402 | =item C<bigint> |
403 | |
404 | Upgraded from version 0.22 to 0.23. |
405 | |
406 | =item C<bignum> |
407 | |
408 | Upgraded from version 0.22 to 0.23. |
409 | |
410 | =item C<bigrat> |
411 | |
412 | Upgraded from version 0.22 to 0.23. |
413 | |
414 | =item C<charnames> |
415 | |
416 | Upgraded from version 1.06 to 1.07. |
417 | |
418 | The Unicode F<NameAliases.txt> database file has been added. This has the |
419 | effect of adding some extra C<\N> character names that formerly wouldn't |
420 | have been recognised; for example, C<"\N{LATIN CAPITAL LETTER GHA}">. |
421 | |
422 | =item C<constant> |
423 | |
9f808eed |
424 | Upgraded from version 1.13 to 1.19. Some code has been shifted from run time to |
425 | compile time, and the amount of MRO cache flushing has been minimised. |
5a00ee6a |
426 | |
427 | =item C<feature> |
428 | |
429 | The meaning of the C<:5.10> and C<:5.10.X> feature bundles has |
430 | changed slightly. The last component, if any (i.e. C<X>) is simply ignored. |
431 | This is predicated on the assumption that new features will not, in |
432 | general, be added to maintenance releases. So C<:5.10> and C<:5.10.X> |
433 | have identical effect. This is a change to the behaviour documented for |
434 | 5.10.0. |
435 | |
436 | =item C<fields> |
437 | |
438 | Upgraded from version 2.13 to 2.14 (this was just a version bump; there |
439 | were no functional changes). |
440 | |
441 | =item C<lib> |
442 | |
443 | Upgraded from version 0.5565 to 0.62. |
444 | |
445 | =item C<open> |
446 | |
447 | Upgraded from version 1.06 to 1.07. |
448 | |
449 | =item C<overload> |
450 | |
451 | Upgraded from version 1.06 to 1.07. |
452 | |
453 | =item C<overloading> |
454 | |
455 | See L</"The C<overloading> pragma"> above. |
456 | |
f7fa8439 |
457 | =item C<mro> |
458 | |
459 | Upgraded from version 1.00 to 1.01. Performance for single inheritance is 40% |
460 | faster - see L</"Performance Enhancements"> below. |
461 | |
462 | C<mro> is now implemented as an XS extension. The documented interface has not |
463 | changed. Code relying on the implementation detail that some C<mro::> |
464 | methods happened to be available at all times gets to "keep both pieces". |
465 | |
5a00ee6a |
466 | =item C<version> |
467 | |
468 | Upgraded from version 0.74 to 0.77. |
469 | |
1839a850 |
470 | =back |
471 | |
5a00ee6a |
472 | =head2 Updated Modules |
02569b83 |
473 | |
474 | =over 4 |
475 | |
5a00ee6a |
476 | =item C<Archive::Extract> |
477 | |
478 | Upgraded from version 0.24 to 0.34. |
479 | |
480 | =item C<Archive::Tar> |
481 | |
482 | Upgraded from version 1.38 to 1.52. |
483 | |
484 | =item C<Attribute::Handlers> |
485 | |
486 | Upgraded from version 0.79 to 0.85. |
487 | |
488 | =item C<AutoLoader> |
489 | |
490 | Upgraded from version 5.63 to 5.68. |
491 | |
492 | =item C<AutoSplit> |
493 | |
494 | Upgraded from version 1.05 to 1.06. |
495 | |
496 | =item C<B> |
497 | |
498 | Upgraded from version 1.17 to 1.22. |
499 | |
500 | =item C<B::Debug> |
501 | |
502 | Upgraded from version 1.05 to 1.11. |
503 | |
504 | =item C<B::Deparse> |
505 | |
506 | Upgraded from version 0.83 to 0.89. |
507 | |
508 | =item C<B::Lint> |
509 | |
510 | Upgraded from version 1.09 to 1.11. |
511 | |
512 | =item C<B::Xref> |
513 | |
514 | Upgraded from version 1.01 to 1.02. |
515 | |
516 | =item C<Benchmark> |
517 | |
518 | Upgraded from version 1.10 to 1.11. |
519 | |
520 | =item C<Carp> |
521 | |
522 | Upgraded from version 1.08 to 1.11. |
523 | |
02569b83 |
524 | L<Carp> now includes all the necessary code to function. Previously, it |
525 | used to be a lightweight placeholder that loaded the actual code from |
526 | C<Carp::Heavy> on demand. C<Carp::Heavy> is now a simple, empty module |
527 | kept for backwards compatibility for programs that used to pre-load it. |
528 | |
5a00ee6a |
529 | =item C<CGI> |
7120b314 |
530 | |
5a00ee6a |
531 | Upgraded from version 3.29 to 3.43. |
532 | (also includes the "default_value for popup_menu()" fix from 3.45). |
7120b314 |
533 | |
5a00ee6a |
534 | =item C<Compress::Zlib> |
7120b314 |
535 | |
5a00ee6a |
536 | Upgraded from version 2.008 to 2.020. |
7120b314 |
537 | |
5a00ee6a |
538 | =item C<CPAN> |
7120b314 |
539 | |
5a00ee6a |
540 | Upgraded from version 1.9205 to 1.9402. C<CPAN::FTP> has a local fix to |
541 | stop it being too verbose on download failure. |
54ad55c5 |
542 | |
5a00ee6a |
543 | =item C<CPANPLUS> |
54ad55c5 |
544 | |
5a00ee6a |
545 | Upgraded from version 0.84 to 0.88. |
54ad55c5 |
546 | |
5a00ee6a |
547 | =item C<CPANPLUS::Dist::Build> |
e2c0f81f |
548 | |
5a00ee6a |
549 | Upgraded from version 0.06_02 to 0.36. |
e2c0f81f |
550 | |
5a00ee6a |
551 | =item C<Cwd> |
fc46f0f6 |
552 | |
5a00ee6a |
553 | Upgraded from version 3.25_01 to 3.30. |
fc46f0f6 |
554 | |
5a00ee6a |
555 | =item C<Data::Dumper> |
54ad55c5 |
556 | |
5a00ee6a |
557 | Upgraded from version 2.121_14 to 2.124. |
7120b314 |
558 | |
5a00ee6a |
559 | =item C<DB> |
7120b314 |
560 | |
5a00ee6a |
561 | Upgraded from version 1.01 to 1.02. |
562 | |
563 | =item C<DB_File> |
564 | |
565 | Upgraded from version 1.816_1 to 1.820. |
566 | |
567 | =item C<Devel::PPPort> |
568 | |
569 | Upgraded from version 3.13 to 3.19. |
570 | |
571 | =item C<Digest::MD5> |
572 | |
573 | Upgraded from version 2.36_01 to 2.39. |
574 | |
575 | =item C<Digest::SHA> |
576 | |
577 | Upgraded from version 5.45 to 5.47. |
578 | |
579 | =item C<DirHandle> |
580 | |
581 | Upgraded from version 1.01 to 1.03. |
582 | |
583 | =item C<Dumpvalue> |
584 | |
585 | Upgraded from version 1.12 to 1.13. |
586 | |
587 | =item C<DynaLoader> |
588 | |
589 | Upgraded from version 1.08 to 1.10. |
590 | |
591 | =item C<Encode> |
592 | |
593 | Upgraded from version 2.23 to 2.35. |
594 | |
595 | =item C<Errno> |
596 | |
597 | Upgraded from version 1.10 to 1.11. |
598 | |
599 | =item C<Exporter> |
600 | |
601 | Upgraded from version 5.62 to 5.63. |
602 | |
603 | =item C<ExtUtils::CBuilder> |
604 | |
605 | Upgraded from version 0.21 to 0.2602. |
606 | |
607 | =item C<ExtUtils::Command> |
608 | |
609 | Upgraded from version 1.13 to 1.16. |
610 | |
611 | =item C<ExtUtils::Constant> |
612 | |
613 | Upgraded from 0.20 to 0.22. (Note that neither of these versions are |
614 | available on CPAN.) |
615 | |
616 | =item C<ExtUtils::Embed> |
617 | |
618 | Upgraded from version 1.27 to 1.28. |
619 | |
620 | =item C<ExtUtils::Install> |
621 | |
622 | Upgraded from version 1.44 to 1.54. |
623 | |
624 | =item C<ExtUtils::MakeMaker> |
625 | |
626 | Upgraded from version 6.42 to 6.55_02. |
627 | |
628 | Note that C<ExtUtils::MakeMaker::bytes> and C<ExtUtils::MakeMaker::vmsish> |
629 | have been removed from this distribution. |
630 | |
631 | =item C<ExtUtils::Manifest> |
632 | |
633 | Upgraded from version 1.51_01 to 1.56. |
634 | |
635 | =item C<ExtUtils::ParseXS> |
636 | |
637 | Upgraded from version 2.18_02 to 2.2002. |
638 | |
639 | =item C<Fatal> |
640 | |
641 | Upgraded from version 1.05 to 2.06_01. See also the new pragma C<autodie>. |
642 | |
643 | =item C<File::Basename> |
644 | |
645 | Upgraded from version 2.76 to 2.77. |
646 | |
647 | =item C<File::Compare> |
648 | |
649 | Upgraded from version 1.1005 to 1.1006. |
650 | |
651 | =item C<File::Copy> |
652 | |
0de885a9 |
653 | Upgraded from version 2.11 to 2.16. |
5a00ee6a |
654 | |
ad1d1c50 |
655 | File::Copy now always return 0 (not "") on failure. |
656 | |
0de885a9 |
657 | FIXME - describe C<cp> |
658 | |
5a00ee6a |
659 | =item C<File::Fetch> |
660 | |
661 | Upgraded from version 0.14 to 0.20. |
662 | |
663 | =item C<File::Find> |
664 | |
665 | Upgraded from version 1.12 to 1.14. |
666 | |
667 | =item C<File::Path> |
668 | |
669 | Upgraded from version 2.04 to 2.07_03. |
670 | |
671 | =item C<File::Spec> |
672 | |
673 | Upgraded from version 3.2501 to 3.30. |
674 | |
675 | =item C<File::stat> |
676 | |
677 | Upgraded from version 1.00 to 1.01. |
678 | |
ad1d1c50 |
679 | Added -X overloading, -M, -C and -A. |
680 | |
5a00ee6a |
681 | =item C<File::Temp> |
682 | |
683 | Upgraded from version 0.18 to 0.22. |
684 | |
685 | =item C<FileCache> |
686 | |
687 | Upgraded from version 1.07 to 1.08. |
688 | |
689 | =item C<FileHandle> |
690 | |
691 | Upgraded from version 2.01 to 2.02. |
692 | |
693 | =item C<Filter::Simple> |
694 | |
695 | Upgraded from version 0.82 to 0.84. |
696 | |
697 | =item C<Filter::Util::Call> |
698 | |
699 | Upgraded from version 1.07 to 1.08. |
700 | |
701 | =item C<FindBin> |
702 | |
703 | Upgraded from version 1.49 to 1.50. |
704 | |
705 | =item C<GDBM_File> |
706 | |
707 | Upgraded from version 1.08 to 1.09. |
708 | |
709 | =item C<Getopt::Long> |
710 | |
711 | Upgraded from version 2.37 to 2.38. |
712 | |
713 | =item C<Hash::Util::FieldHash> |
714 | |
715 | Upgraded from version 1.03 to 1.04. This fixes a memory leak. |
716 | |
717 | =item C<I18N::Collate> |
718 | |
719 | Upgraded from version 1.00 to 1.01. |
720 | |
721 | =item C<IO> |
722 | |
723 | Upgraded from version 1.23_01 to 1.25. |
724 | |
725 | This makes non-blocking mode work on Windows in C<IO::Socket::INET> |
726 | [CPAN #43573]. |
727 | |
728 | =item C<IO::Compress::*> |
729 | |
730 | Upgraded from version 2.008 to 2.020. |
731 | |
732 | =item C<IO::Dir> |
733 | |
734 | Upgraded from version 1.06 to 1.07. |
735 | |
736 | =item C<IO::Handle> |
737 | |
738 | Upgraded from version 1.27 to 1.28. |
739 | |
740 | =item C<IO::Socket> |
741 | |
742 | Upgraded from version 1.30_01 to 1.31. |
743 | |
744 | =item C<IO::Zlib> |
745 | |
746 | Upgraded from version 1.07 to 1.09. |
747 | |
748 | =item C<IPC::Cmd> |
749 | |
750 | Upgraded from version 0.40_1 to 0.46. |
751 | |
752 | =item C<IPC::Open3> |
753 | |
754 | Upgraded from version 1.02 to 1.04. |
755 | |
756 | =item C<IPC::SysV> |
757 | |
758 | Upgraded from version 1.05 to 2.01. |
759 | |
760 | =item C<lib> |
761 | |
762 | Upgraded from version 0.5565 to 0.62. |
763 | |
764 | =item C<List::Util> |
765 | |
766 | Upgraded from version 1.19 to 1.21. |
767 | |
768 | =item C<Locale::MakeText> |
769 | |
770 | Upgraded from version 1.12 to 1.13. |
771 | |
772 | =item C<Log::Message> |
773 | |
774 | Upgraded from version 0.01 to 0.02. |
775 | |
776 | =item C<Math::BigFloat> |
777 | |
778 | Upgraded from version 1.59 to 1.60. |
779 | |
780 | =item C<Math::BigInt> |
781 | |
782 | Upgraded from version 1.88 to 1.89. |
783 | |
784 | =item C<Math::BigInt::FastCalc> |
785 | |
786 | Upgraded from version 0.16 to 0.19. |
787 | |
788 | =item C<Math::BigRat> |
789 | |
790 | Upgraded from version 0.21 to 0.22. |
791 | |
792 | =item C<Math::Complex> |
793 | |
794 | Upgraded from version 1.37 to 1.56. |
795 | |
796 | =item C<Math::Trig> |
797 | |
798 | Upgraded from version 1.04 to 1.20. |
799 | |
800 | =item C<Memoize> |
801 | |
802 | Upgraded from version 1.01_02 to 1.01_03 (just a minor documentation |
803 | change). |
804 | |
805 | =item C<Module::Build> |
806 | |
807 | Upgraded from version 0.2808_01 to 0.34_02. |
808 | |
809 | =item C<Module::CoreList> |
810 | |
811 | Upgraded from version 2.13 to 2.18. This release no longer contains the |
812 | C<%Module::CoreList::patchlevel> hash. |
813 | |
814 | =item C<Module::Load> |
815 | |
816 | Upgraded from version 0.12 to 0.16. |
817 | |
818 | =item C<Module::Load::Conditional> |
819 | |
820 | Upgraded from version 0.22 to 0.30. |
821 | |
822 | =item C<Module::Loaded> |
823 | |
824 | Upgraded from version 0.01 to 0.02. |
825 | |
826 | =item C<Module::Pluggable> |
827 | |
828 | Upgraded from version 3.6 to 3.9. |
829 | |
830 | =item C<NDBM_File> |
831 | |
832 | Upgraded from version 1.07 to 1.08. |
833 | |
834 | =item C<Net::Ping> |
835 | |
836 | Upgraded from version 2.33 to 2.36. |
837 | |
838 | =item C<NEXT> |
839 | |
840 | Upgraded from version 0.60_01 to 0.64. |
841 | |
842 | =item C<Object::Accessor> |
843 | |
844 | Upgraded from version 0.32 to 0.34. |
845 | |
846 | =item C<OS2::REXX> |
847 | |
848 | Upgraded from version 1.03 to 1.04. |
849 | |
850 | =item C<Package::Constants> |
851 | |
852 | Upgraded from version 0.01 to 0.02. |
853 | |
854 | =item C<PerlIO> |
855 | |
856 | Upgraded from version 1.04 to 1.06. |
857 | |
858 | =item C<PerlIO::via> |
859 | |
860 | Upgraded from version 0.04 to 0.07. |
861 | |
862 | =item C<Pod::Man> |
863 | |
864 | Upgraded from version 2.16 to 2.22. |
865 | |
866 | =item C<Pod::Parser> |
867 | |
868 | Upgraded from version 1.35 to 1.37. |
869 | |
0f97ff05 |
870 | =item C<Pod::Plainer> |
871 | |
872 | Upgraded from version 0.01 to 1.00. |
873 | |
874 | There are no code changes - the version bump is because C<Pod::Plainer> has |
875 | been released to CPAN as a stand alone distribution, and will be removed from |
876 | the core distribution in 5.14. |
877 | |
ad1d1c50 |
878 | =item Pod::Perldoc |
879 | |
880 | Upgrade from version 3.14_02 to 3.15. |
881 | |
5a00ee6a |
882 | =item C<Pod::Simple> |
883 | |
884 | Upgraded from version 3.05 to 3.07. |
885 | |
886 | =item C<Pod::Text> |
887 | |
888 | Upgraded from version 3.08 to 3.13. |
889 | |
890 | =item C<POSIX> |
891 | |
892 | Upgraded from version 1.13 to 1.17. |
893 | |
894 | =item C<Safe> |
895 | |
896 | Upgraded from 2.12 to 2.18. |
897 | |
898 | =item C<Scalar::Util> |
899 | |
900 | Upgraded from version 1.19 to 1.21. |
901 | |
902 | =item C<SelectSaver> |
903 | |
904 | Upgraded from 1.01 to 1.02. |
905 | |
906 | =item C<SelfLoader> |
907 | |
908 | Upgraded from 1.11 to 1.17. |
909 | |
910 | =item C<Socket> |
911 | |
61f1d76c |
912 | Upgraded from 1.80 to 1.84. |
913 | |
914 | As of 1.84, C<Socket> can now handle abstract namespace sockets on Linux. |
915 | (see unix(7)). |
5a00ee6a |
916 | |
917 | =item C<Storable> |
918 | |
919 | Upgraded from 2.18 to 2.20. |
920 | |
921 | =item C<Switch> |
922 | |
923 | Upgraded from version 2.13 to 2.14. Please see L</Deprecations>. |
924 | |
925 | =item C<Symbol> |
926 | |
927 | Upgraded from version 1.06 to 1.07. |
928 | |
929 | =item C<Sys::Syslog> |
930 | |
931 | Upgraded from version 0.22 to 0.27. |
932 | |
933 | =item C<Term::ANSIColor> |
934 | |
ad1d1c50 |
935 | Upgraded from version 1.12 to 2.01. |
5a00ee6a |
936 | |
937 | =item C<Term::ReadLine> |
938 | |
939 | Upgraded from version 1.03 to 1.04. |
940 | |
941 | =item C<Term::UI> |
942 | |
943 | Upgraded from version 0.18 to 0.20. |
944 | |
945 | =item C<Test::Harness> |
946 | |
947 | Upgraded from version 2.64 to 3.17. |
948 | |
949 | Note that one side-effect of the 2.x to 3.x upgrade is that the |
950 | experimental C<Test::Harness::Straps> module (and its supporting |
951 | C<Assert>, C<Iterator>, C<Point> and C<Results> modules) have been |
952 | removed. If you still need this, then they are available in the |
953 | (unmaintained) C<Test-Harness-Straps> distribution on CPAN. |
954 | |
955 | =item C<Test::Simple> |
956 | |
957 | Upgraded from version 0.72 to 0.92. |
958 | |
959 | =item C<Text::ParseWords> |
960 | |
961 | Upgraded from version 3.26 to 3.27. |
962 | |
963 | =item C<Text::Tabs> |
964 | |
965 | Upgraded from version 2007.1117 to 2009.0305. |
966 | |
967 | =item C<Text::Wrap> |
968 | |
969 | Upgraded from version 2006.1117 to 2009.0305. |
970 | |
971 | =item C<Thread::Queue> |
972 | |
973 | Upgraded from version 2.00 to 2.11. |
974 | |
975 | =item C<Thread::Semaphore> |
976 | |
977 | Upgraded from version 2.01 to 2.09. |
978 | |
979 | =item C<threads> |
980 | |
ad1d1c50 |
981 | Upgraded from version 1.67 to 1.73. |
5a00ee6a |
982 | |
983 | =item C<threads::shared> |
984 | |
985 | Upgraded from version 1.14 to 1.29. |
986 | |
987 | =item C<Tie::RefHash> |
988 | |
989 | Upgraded from version 1.37 to 1.38. |
990 | |
991 | =item C<Tie::StdHandle> |
992 | |
993 | This has documentation changes, and has been assigned a version for the |
994 | first time: version 4.2. |
995 | |
996 | =item C<Time::HiRes> |
997 | |
998 | Upgraded from version 1.9711 to 1.9719. |
999 | |
1000 | =item C<Time::Local> |
1001 | |
1002 | Upgraded from version 1.18 to 1.1901. |
1003 | |
1004 | =item C<Time::Piece> |
1005 | |
1006 | Upgraded from version 1.12 to 1.15. |
1007 | |
1008 | =item C<Unicode::Normalize> |
1009 | |
1010 | Upgraded from version 1.02 to 1.03. |
1011 | |
1012 | =item C<Unicode::UCD> |
1013 | |
1014 | Upgraded from version 0.25 to 0.27. |
1015 | |
1016 | C<charinfo()> now works on Unified CJK code points added to later versions |
1017 | of Unicode. |
1018 | |
1019 | C<casefold()> has new fields returned to provide both a simpler interface |
1020 | and previously missing information. The old fields are retained for |
1021 | backwards compatibility. Information about Turkic-specific code points is |
1022 | now returned. |
1023 | |
1024 | The documentation has been corrected and expanded. |
1025 | |
1026 | =item C<UNIVERSAL> |
1027 | |
1028 | Upgraded from version 1.04 to 1.05. |
1029 | |
eeab323f |
1030 | C<< UNIVERSAL->import() >> is now deprecated. |
ad1d1c50 |
1031 | |
5a00ee6a |
1032 | =item C<Win32> |
1033 | |
1034 | Upgraded from version 0.34 to 0.39. |
1035 | |
1036 | =item C<Win32API::File> |
1037 | |
1038 | Upgraded from version 0.1001_01 to 0.1101. |
1039 | |
1040 | =item C<XSLoader> |
1041 | |
1042 | Upgraded from version 0.08 to 0.10. |
1043 | |
1044 | =back |
1045 | |
1046 | =head1 Utility Changes |
1047 | |
1048 | =over 4 |
1049 | |
1050 | =item F<h2ph> |
1051 | |
1052 | Now looks in C<include-fixed> too, which is a recent addition to gcc's |
1053 | search path. |
1054 | |
1055 | =item F<h2xs> |
1056 | |
1057 | No longer incorrectly treats enum values like macros (Daniel Burr). |
1058 | |
1059 | Now handles C++ style constants (C<//>) properly in enums. (A patch from |
1060 | Rainer Weikusat was used; Daniel Burr also proposed a similar fix). |
1061 | |
1062 | =item F<perl5db.pl> |
1063 | |
1064 | C<LVALUE> subroutines now work under the debugger. |
1065 | |
1066 | The debugger now correctly handles proxy constant subroutines, and |
1067 | subroutine stubs. |
1068 | |
ad1d1c50 |
1069 | =item F<perlbug> |
1070 | |
038a5866 |
1071 | F<perlbug> now uses C<%Module::CoreList::bug_tracker> to print out upstream bug |
76e3c4a8 |
1072 | tracker URLs. |
ad1d1c50 |
1073 | |
1074 | Where the user names a module that their bug report is about, and we know the |
1075 | URL for its upstream bug tracker, provide a message to the user explaining |
1076 | that the core copies the CPAN version directly, and provide the URL for |
1077 | reporting the bug directly to upstream. |
1078 | |
5a00ee6a |
1079 | =item F<perlthanks> |
1080 | |
3141b5e1 |
1081 | Perl 5.11.0 added a new utility F<perlthanks>, which is a variant of |
5a00ee6a |
1082 | F<perlbug>, but for sending non-bug-reports to the authors and maintainers |
1083 | of Perl. Getting nothing but bug reports can become a bit demoralising: |
1084 | we'll see if this changes things. |
1085 | |
1086 | =back |
1087 | |
1088 | =head1 New Documentation |
1089 | |
1090 | =over 4 |
1091 | |
1092 | =item L<perlhaiku> |
1093 | |
1094 | This contains instructions on how to build perl for the Haiku platform. |
1095 | |
1096 | =item L<perlmroapi> |
1097 | |
1098 | This describes the new interface for pluggable Method Resolution Orders. |
1099 | |
1100 | =item L<perlperf> |
1101 | |
1102 | This document, by Richard Foley, provides an introduction to the use of |
1103 | performance and optimization techniques which can be used with particular |
1104 | reference to perl programs. |
1105 | |
1106 | =item L<perlrepository> |
1107 | |
1108 | This describes how to access the perl source using the I<git> version |
1109 | control system. |
1110 | |
1111 | =item L<perlthanks> |
1112 | |
1113 | This describes the new F<perlthanks> utility. |
1114 | |
1115 | =back |
1116 | |
1117 | =head1 Changes to Existing Documentation |
1118 | |
76e3c4a8 |
1119 | The various large F<Changes*> files (which listed every change made to perl |
5a00ee6a |
1120 | over the last 18 years) have been removed, and replaced by a small file, |
76e3c4a8 |
1121 | also called F<Changes>, which just explains how that same information may |
5a00ee6a |
1122 | be extracted from the git version control system. |
1123 | |
1124 | The file F<Porting/patching.pod> has been deleted, as it mainly described |
1125 | interacting with the old Perforce-based repository, which is now obsolete. |
1126 | Information still relevant has been moved to L<perlrepository>. |
1127 | |
1128 | L<perlapi>, L<perlintern>, L<perlmodlib> and L<perltoc> are now all |
1129 | generated at build time, rather than being shipped as part of the release. |
1130 | |
ad1d1c50 |
1131 | =head2 Documented -X overloading. |
1132 | |
7a4b5c08 |
1133 | =head2 Documented that C<when()> treats specially most of the filetest operators |
ad1d1c50 |
1134 | |
ad1d1c50 |
1135 | =head2 Documented when as a syntax modifier |
1136 | |
1137 | =head2 Eliminated "Old Perl threads tutorial", which describes 5005 threads. |
1138 | |
1139 | pod/perlthrtut.pod is the same material reworked for ithreads. |
1140 | |
ad1d1c50 |
1141 | =head2 Correct previous documentation: v-strings are not deprecated |
1142 | |
1143 | With version objects, we need them to use MODULE VERSION syntax. This |
1144 | patch removes the deprecation note. |
1145 | |
5a00ee6a |
1146 | =head1 Performance Enhancements |
1147 | |
1148 | =over 4 |
1149 | |
1150 | =item * |
1151 | |
1152 | A new internal cache means that C<isa()> will often be faster. |
1153 | |
1154 | =item * |
1155 | |
6f54462f |
1156 | The implementation of C<C3> Method Resolution Order has been optimised - |
1157 | linearisation for classes with single inheritance is 40% faster. Performance |
1158 | for multiple inheritance is unchanged. |
1159 | |
1160 | =item * |
1161 | |
5a00ee6a |
1162 | Under C<use locale>, the locale-relevant information is now cached on |
1163 | read-only values, such as the list returned by C<keys %hash>. This makes |
1164 | operations such as C<sort keys %hash> in the scope of C<use locale> much |
1165 | faster. |
1166 | |
1167 | =item * |
1168 | |
1169 | Empty C<DESTROY> methods are no longer called. |
1170 | |
ad1d1c50 |
1171 | =item * |
1172 | |
7a4b5c08 |
1173 | Faster C<Perl_sv_utf8_upgrade()> |
ad1d1c50 |
1174 | |
1175 | =item * |
1176 | |
7a4b5c08 |
1177 | Speed up C<keys> on empty hash |
ad1d1c50 |
1178 | |
5a00ee6a |
1179 | =back |
1180 | |
1181 | =head1 Installation and Configuration Improvements |
1182 | |
1183 | =head2 F<ext/> reorganisation |
1184 | |
1185 | The layout of directories in F<ext> has been revised. Specifically, all |
1186 | extensions are now flat, and at the top level, with C</> in pathnames |
1187 | replaced by C<->, so that F<ext/Data/Dumper/> is now F<ext/Data-Dumper/>, |
1188 | etc. The names of the extensions as specified to F<Configure>, and as |
1189 | reported by C<%Config::Config> under the keys C<dynamic_ext>, |
1190 | C<known_extensions>, C<nonxs_ext> and C<static_ext> have not changed, and |
1191 | still use C</>. Hence this change will not have any affect once perl is |
429ee0aa |
1192 | installed. C<Safe> has been split out from being part of C<Opcode>, and |
1193 | C<mro> is now an extension in its own right. |
1194 | |
1195 | Nearly all dual-life modules have been moved from F<lib> to F<ext>, and will |
1196 | now appear as known C<nonxs_ext>. This will made no difference to the |
1197 | structure of an installed perl, nor will the modules installed differ, |
1198 | unless you run F<Configure> with options to specify an exact list of |
1199 | extensions to build. In this case, you will rapidly become aware that you |
1200 | need to add to your list, because various modules needed to complete the |
1201 | build, such as C<ExtUtils::ParseXS>, have now become extensions, and |
1202 | without them the build will fail well before it attempts to run the |
1203 | regression tests. |
5a00ee6a |
1204 | |
1205 | =head2 Configuration improvements |
1206 | |
1207 | If C<vendorlib> and C<vendorarch> are the same, then they are only added to |
1208 | C<@INC> once. |
1209 | |
1210 | C<$Config{usedevel}> and the C-level C<PERL_USE_DEVEL> are now defined if |
1211 | perl is built with C<-Dusedevel>. |
1212 | |
1213 | F<Configure> will enable use of C<-fstack-protector>, to provide protection |
1214 | against stack-smashing attacks, if the compiler supports it. |
1215 | |
1216 | F<Configure> will now determine the correct prototypes for re-entrant |
1217 | functions, and for C<gconvert>, if you are using a C++ compiler rather |
1218 | than a C compiler. |
1219 | |
1220 | On Unix, if you build from a tree containing a git repository, the |
1221 | configuration process will note the commit hash you have checked out, for |
1222 | display in the output of C<perl -v> and C<perl -V>. Unpushed local commits |
1223 | are automatically added to the list of local patches displayed by |
1224 | C<perl -V>. |
1225 | |
1226 | =head2 Compilation improvements |
1227 | |
1228 | As part of the flattening of F<ext>, all extensions on all platforms are |
1229 | built by F<make_ext.pl>. This replaces the Unix-specific |
1230 | F<ext/util/make_ext>, VMS-specific F<make_ext.com> and Win32-specific |
1231 | F<win32/buildext.pl>. |
1232 | |
1233 | =head2 Platform Specific Changes |
1234 | |
1235 | =over 4 |
1236 | |
1237 | =item AIX |
1238 | |
7a4b5c08 |
1239 | Removed F<libbsd> for AIX 5L and 6.1. Only C<flock()> was used from F<libbsd>. |
5a00ee6a |
1240 | |
1241 | Removed F<libgdbm> for AIX 5L and 6.1. The F<libgdbm> is delivered as an |
1242 | optional package with the AIX Toolbox. Unfortunately the 64 bit version |
1243 | is broken. |
1244 | |
1245 | Hints changes mean that AIX 4.2 should work again. |
1246 | |
1247 | =item Cygwin |
1248 | |
1249 | On Cygwin we now strip the last number from the DLL. This has been the |
1250 | behaviour in the cygwin.com build for years. The hints files have been |
1251 | updated. |
1252 | |
81afb674 |
1253 | =item DomainOS |
1254 | |
1255 | Support for Apollo DomainOS was removed in Perl 5.11.0 |
1256 | |
5a00ee6a |
1257 | =item FreeBSD |
1258 | |
1259 | The hints files now identify the correct threading libraries on FreeBSD 7 |
1260 | and later. |
1261 | |
1262 | =item Irix |
1263 | |
1264 | We now work around a bizarre preprocessor bug in the Irix 6.5 compiler: |
1265 | C<cc -E -> unfortunately goes into K&R mode, but C<cc -E file.c> doesn't. |
1266 | |
1267 | =item Haiku |
1268 | |
1269 | Patches from the Haiku maintainers have been merged in. Perl should now |
1270 | build on Haiku. |
1271 | |
81afb674 |
1272 | =item MiNT |
1273 | |
1274 | Support for Atari MiNT was removed in Perl 5.11.0. |
1275 | |
5a00ee6a |
1276 | =item MirOS BSD |
1277 | |
1278 | Perl should now build on MirOS BSD. |
1279 | |
1280 | =item NetBSD |
1281 | |
1282 | Hints now supports versions 5.*. |
1283 | |
1284 | =item Stratus VOS |
1285 | |
1286 | Various changes from Stratus have been merged in. |
1287 | |
1288 | =item Symbian |
1289 | |
1290 | There is now support for Symbian S60 3.2 SDK and S60 5.0 SDK. |
1291 | |
1292 | =item Win32 |
1293 | |
1294 | Improved message window handling means that C<alarm> and C<kill> messages |
1295 | will no longer be dropped under race conditions. |
1296 | |
1297 | =item VMS |
1298 | |
1299 | Reads from the in-memory temporary files of C<PerlIO::scalar> used to fail |
1300 | if C<$/> was set to a numeric reference (to indicate record-style reads). |
1301 | This is now fixed. |
1302 | |
1303 | VMS now supports C<getgrgid>. |
1304 | |
1305 | Many improvements and cleanups have been made to the VMS file name handling |
1306 | and conversion code. |
1307 | |
1308 | Enabling the C<PERL_VMS_POSIX_EXIT> logical name now encodes a POSIX exit |
1309 | status in a VMS condition value for better interaction with GNV's bash |
1310 | shell and other utilities that depend on POSIX exit values. See |
1311 | L<perlvms/"$?"> for details. |
1312 | |
76e3c4a8 |
1313 | C<File::Copy> now detects Unix compatibility mode on VMS. |
ad1d1c50 |
1314 | |
5a00ee6a |
1315 | =back |
1316 | |
1317 | =head1 Selected Bug Fixes |
1318 | |
1319 | =over 4 |
1320 | |
038a5866 |
1321 | =item * |
5a00ee6a |
1322 | |
038a5866 |
1323 | C<-I> on shebang line now adds directories in front of @INC. |
5a00ee6a |
1324 | as documented, and as does C<-I> when specified on the command-line. |
1325 | (Renée Bäcker) |
1326 | |
76e3c4a8 |
1327 | =item * |
5a00ee6a |
1328 | |
76e3c4a8 |
1329 | C<kill> is now fatal when called on non-numeric process identifiers. |
5a00ee6a |
1330 | Previously, an 'undef' process identifier would be interpreted as a request to |
1331 | kill process "0", which would terminate the current process group on POSIX |
1332 | systems. Since process identifiers are always integers, killing a non-numeric |
1333 | process is now fatal. |
1334 | |
1335 | =item * |
1336 | |
1337 | 5.10.0 inadvertently disabled an optimisation, which caused a measurable |
1338 | performance drop in list assignment, such as is often used to assign |
1339 | function parameters from C<@_>. The optimisation has been re-instated, and |
1340 | the performance regression fixed. |
1341 | |
1342 | =item * |
1343 | |
1344 | Fixed memory leak on C<while (1) { map 1, 1 }> [RT #53038]. |
1345 | |
1346 | =item * |
1347 | |
1348 | Some potential coredumps in PerlIO fixed [RT #57322,54828]. |
1349 | |
1350 | =item * |
1351 | |
1352 | The debugger now works with lvalue subroutines. |
1353 | |
1354 | =item * |
1355 | |
1356 | The debugger's C<m> command was broken on modules that defined constants |
1357 | [RT #61222]. |
1358 | |
1359 | =item * |
1360 | |
7a4b5c08 |
1361 | C<crypt> and string complement could return tainted values for untainted |
5a00ee6a |
1362 | arguments [RT #59998]. |
1363 | |
1364 | =item * |
1365 | |
038a5866 |
1366 | The C<-i>I<.suffix> command-line switch now recreates the file using |
5a00ee6a |
1367 | restricted permissions, before changing its mode to match the original |
1368 | file. This eliminates a potential race condition [RT #60904]. |
1369 | |
1370 | =item * |
1371 | |
1372 | On some UNIX systems, the value in C<$?> would not have the top bit set |
1373 | (C<$? & 128>) even if the child core dumped. |
1374 | |
1375 | =item * |
1376 | |
038a5866 |
1377 | Under some circumstances, C<$^R> could incorrectly become undefined |
5a00ee6a |
1378 | [RT #57042]. |
1379 | |
1380 | =item * |
1381 | |
a048364f |
1382 | In the XS API, various hash functions, when passed a pre-computed hash where |
1383 | the key is UTF-8, might result in an incorrect lookup. |
5a00ee6a |
1384 | |
1385 | =item * |
1386 | |
a048364f |
1387 | XS code including F<XSUB.h> before F<perl.h> gave a compile-time error |
5a00ee6a |
1388 | [RT #57176]. |
1389 | |
1390 | =item * |
1391 | |
1392 | C<< $object->isa('Foo') >> would report false if the package C<Foo> didn't |
1393 | exist, even if the object's C<@ISA> contained C<Foo>. |
1394 | |
1395 | =item * |
1396 | |
1397 | Various bugs in the new-to 5.10.0 mro code, triggered by manipulating |
1398 | C<@ISA>, have been found and fixed. |
1399 | |
1400 | =item * |
1401 | |
1402 | Bitwise operations on references could crash the interpreter, e.g. |
1403 | C<$x=\$y; $x |= "foo"> [RT #54956]. |
1404 | |
1405 | =item * |
1406 | |
1407 | Patterns including alternation might be sensitive to the internal UTF-8 |
1408 | representation, e.g. |
1409 | |
1410 | my $byte = chr(192); |
1411 | my $utf8 = chr(192); utf8::upgrade($utf8); |
1412 | $utf8 =~ /$byte|X}/i; # failed in 5.10.0 |
1413 | |
1414 | =item * |
1415 | |
1416 | Within UTF8-encoded Perl source files (i.e. where C<use utf8> is in |
1417 | effect), double-quoted literal strings could be corrupted where a C<\xNN>, |
1418 | C<\0NNN> or C<\N{}> is followed by a literal character with ordinal value |
1419 | greater than 255 [RT #59908]. |
1420 | |
1421 | =item * |
1422 | |
1423 | C<B::Deparse> failed to correctly deparse various constructs: |
1424 | C<readpipe STRING> [RT #62428], C<CORE::require(STRING)> [RT #62488], |
1425 | C<sub foo(_)> [RT #62484]. |
1426 | |
1427 | =item * |
1428 | |
7a4b5c08 |
1429 | Using C<setpgrp> with no arguments could corrupt the perl stack. |
5a00ee6a |
1430 | |
1431 | =item * |
1432 | |
1433 | The block form of C<eval> is now specifically trappable by C<Safe> and |
1434 | C<ops>. Previously it was erroneously treated like string C<eval>. |
1435 | |
1436 | =item * |
1437 | |
1438 | In 5.10.0, the two characters C<[~> were sometimes parsed as the smart |
1439 | match operator (C<~~>) [RT #63854]. |
1440 | |
1441 | =item * |
1442 | |
1443 | In 5.10.0, the C<*> quantifier in patterns was sometimes treated as |
1444 | C<{0,32767}> [RT #60034, #60464]. For example, this match would fail: |
1445 | |
1446 | ("ab" x 32768) =~ /^(ab)*$/ |
1447 | |
1448 | =item * |
1449 | |
1450 | C<shmget> was limited to a 32 bit segment size on a 64 bit OS [RT #63924]. |
1451 | |
1452 | =item * |
1453 | |
1454 | Using C<next> or C<last> to exit a C<given> block no longer produces a |
1455 | spurious warning like the following: |
1456 | |
1457 | Exiting given via last at foo.pl line 123 |
1458 | |
1459 | =item * |
1460 | |
1461 | On Windows, C<'.\foo'> and C<'..\foo'> were treated differently than |
1462 | C<'./foo'> and C<'../foo'> by C<do> and C<require> [RT #63492]. |
1463 | |
1464 | =item * |
1465 | |
1466 | Assigning a format to a glob could corrupt the format; e.g.: |
1467 | |
1468 | *bar=*foo{FORMAT}; # foo format now bad |
1469 | |
1470 | =item * |
1471 | |
1472 | Attempting to coerce a typeglob to a string or number could cause an |
1473 | assertion failure. The correct error message is now generated, |
1474 | C<Can't coerce GLOB to I<$type>>. |
1475 | |
1476 | =item * |
1477 | |
1478 | Under C<use filetest 'access'>, C<-x> was using the wrong access mode. This |
1479 | has been fixed [RT #49003]. |
1480 | |
1481 | =item * |
1482 | |
1483 | C<length> on a tied scalar that returned a Unicode value would not be |
1484 | correct the first time. This has been fixed. |
1485 | |
1486 | =item * |
1487 | |
1488 | Using an array C<tie> inside in array C<tie> could SEGV. This has been |
1489 | fixed. [RT #51636] |
1490 | |
1491 | =item * |
1492 | |
1493 | A race condition inside C<PerlIOStdio_close()> has been identified and |
1494 | fixed. This used to cause various threading issues, including SEGVs. |
1495 | |
1496 | =item * |
1497 | |
1498 | In C<unpack>, the use of C<()> groups in scalar context was internally |
1499 | placing a list on the interpreter's stack, which manifested in various |
1500 | ways, including SEGVs. This is now fixed [RT #50256]. |
1501 | |
1502 | =item * |
1503 | |
1504 | Magic was called twice in C<substr>, C<\&$x>, C<tie $x, $m> and C<chop>. |
1505 | These have all been fixed. |
1506 | |
1507 | =item * |
1508 | |
1509 | A 5.10.0 optimisation to clear the temporary stack within the implicit |
1510 | loop of C<s///ge> has been reverted, as it turned out to be the cause of |
1511 | obscure bugs in seemingly unrelated parts of the interpreter [commit |
1512 | ef0d4e17921ee3de]. |
1513 | |
1514 | =item * |
1515 | |
1516 | The line numbers for warnings inside C<elsif> are now correct. |
1517 | |
1518 | =item * |
1519 | |
1520 | The C<..> operator now works correctly with ranges whose ends are at or |
1521 | close to the values of the smallest and largest integers. |
1522 | |
1523 | =item * |
1524 | |
1525 | C<binmode STDIN, ':raw'> could lead to segmentation faults on some platforms. |
1526 | This has been fixed [RT #54828]. |
1527 | |
1528 | =item * |
1529 | |
1530 | An off-by-one error meant that C<index $str, ...> was effectively being |
1531 | executed as C<index "$str\0", ...>. This has been fixed [RT #53746]. |
1532 | |
1533 | =item * |
1534 | |
1535 | Various leaks associated with named captures in regexes have been fixed |
1536 | [RT #57024]. |
1537 | |
1538 | =item * |
1539 | |
1540 | A weak reference to a hash would leak. This was affecting C<DBI> |
1541 | [RT #56908]. |
1542 | |
1543 | =item * |
1544 | |
1545 | Using (?|) in a regex could cause a segfault [RT #59734]. |
1546 | |
1547 | =item * |
1548 | |
1549 | Use of a UTF-8 C<tr//> within a closure could cause a segfault [RT #61520]. |
1550 | |
1551 | =item * |
1552 | |
7a4b5c08 |
1553 | Calling C<Perl_sv_chop()> or otherwise upgrading an SV could result in an |
5a00ee6a |
1554 | unaligned 64-bit access on the SPARC architecture [RT #60574]. |
1555 | |
1556 | =item * |
1557 | |
1558 | In the 5.10.0 release, C<inc_version_list> would incorrectly list |
1559 | C<5.10.*> after C<5.8.*>; this affected the C<@INC> search order |
1560 | [RT #67628]. |
1561 | |
1562 | =item * |
1563 | |
1564 | In 5.10.0, C<pack "a*", $tainted_value> returned a non-tainted value |
1565 | [RT #52552]. |
1566 | |
1567 | =item * |
1568 | |
1569 | In 5.10.0, C<printf> and C<sprintf> could produce the fatal error |
1570 | C<panic: utf8_mg_pos_cache_update> when printing UTF-8 strings |
1571 | [RT #62666]. |
1572 | |
1573 | =item * |
1574 | |
1575 | In the 5.10.0 release, a dynamically created C<AUTOLOAD> method might be |
1576 | missed (method cache issue) [RT #60220,60232]. |
1577 | |
1578 | =item * |
1579 | |
1580 | In the 5.10.0 release, a combination of C<use feature> and C<//ee> could |
1581 | cause a memory leak [RT #63110]. |
1582 | |
1583 | =item * |
1584 | |
1585 | C<-C> on the shebang (C<#!>) line is once more permitted if it is also |
1586 | specified on the command line. C<-C> on the shebang line used to be a |
1587 | silent no-op I<if> it was not also on the command line, so perl 5.10.0 |
1588 | disallowed it, which broke some scripts. Now perl checks whether it is |
1589 | also on the command line and only dies if it is not [RT #67880]. |
1590 | |
1591 | =item * |
1592 | |
1593 | In 5.10.0, certain types of re-entrant regular expression could crash, |
1594 | or cause the following assertion failure [RT #60508]: |
1595 | |
1596 | Assertion rx->sublen >= (s - rx->subbeg) + i failed |
1597 | |
5a00ee6a |
1598 | =back |
1599 | |
1600 | =head1 New or Changed Diagnostics |
1601 | |
1602 | =over 4 |
1603 | |
1604 | =item C<panic: sv_chop %s> |
1605 | |
1606 | This new fatal error occurs when the C routine C<Perl_sv_chop()> was |
1607 | passed a position that is not within the scalar's string buffer. This |
1608 | could be caused by buggy XS code, and at this point recovery is not |
1609 | possible. |
1610 | |
1611 | =item C<Can't locate package %s for the parents of %s> |
1612 | |
1613 | This warning has been removed. In general, it only got produced in |
1614 | conjunction with other warnings, and removing it allowed an ISA lookup |
1615 | optimisation to be added. |
1616 | |
1617 | =item C<v-string in use/require is non-portable> |
1618 | |
1619 | This warning has been removed. |
1620 | |
1621 | =item C<Deep recursion on subroutine "%s"> |
1622 | |
1623 | It is now possible to change the depth threshold for this warning from the |
1624 | default of 100, by recompiling the F<perl> binary, setting the C |
1625 | pre-processor macro C<PERL_SUB_DEPTH_WARN> to the desired value. |
1626 | |
1627 | =back |
1628 | |
1629 | =head1 Changed Internals |
1630 | |
1631 | =over 4 |
1632 | |
1633 | =item * |
1634 | |
1635 | The J.R.R. Tolkien quotes at the head of C source file have been checked and |
1636 | proper citations added, thanks to a patch from Tom Christiansen. |
1637 | |
1638 | =item * |
1639 | |
7a4b5c08 |
1640 | C<Perl_vcroak()> now accepts a null first argument. In addition, a full audit |
5a00ee6a |
1641 | was made of the "not NULL" compiler annotations, and those for several |
1642 | other internal functions were corrected. |
1643 | |
1644 | =item * |
1645 | |
1646 | New macros C<dSAVEDERRNO>, C<dSAVE_ERRNO>, C<SAVE_ERRNO>, C<RESTORE_ERRNO> |
1647 | have been added to formalise the temporary saving of the C<errno> |
1648 | variable. |
1649 | |
1650 | =item * |
1651 | |
1652 | The function C<Perl_sv_insert_flags> has been added to augment |
1653 | C<Perl_sv_insert>. |
1654 | |
1655 | =item * |
1656 | |
1657 | The function C<Perl_newSV_type(type)> has been added, equivalent to |
1658 | C<Perl_newSV()> followed by C<Perl_sv_upgrade(type)>. |
1659 | |
1660 | =item * |
1661 | |
1662 | The function C<Perl_newSVpvn_flags()> has been added, equivalent to |
1663 | C<Perl_newSVpvn()> and then performing the action relevant to the flag. |
1664 | |
1665 | Two flag bits are currently supported. |
1666 | |
1667 | =over 4 |
1668 | |
1669 | =item C<SVf_UTF8> |
1670 | |
1671 | This will call C<SvUTF8_on()> for you. (Note that this does not convert an |
1672 | sequence of ISO 8859-1 characters to UTF-8). A wrapper, C<newSVpvn_utf8()> |
1673 | is available for this. |
1674 | |
1675 | =item C<SVs_TEMP> |
1676 | |
7a4b5c08 |
1677 | Call C<Perl_sv_2mortal()> on the new SV. |
5a00ee6a |
1678 | |
1679 | =back |
1680 | |
1681 | There is also a wrapper that takes constant strings, C<newSVpvs_flags()>. |
1682 | |
1683 | =item * |
1684 | |
1685 | The function C<Perl_croak_xs_usage> has been added as a wrapper to |
1686 | C<Perl_croak>. |
1687 | |
1688 | =item * |
1689 | |
1690 | The functions C<PerlIO_find_layer> and C<PerlIO_list_alloc> are now |
1691 | exported. |
1692 | |
1693 | =item * |
1694 | |
1695 | C<PL_na> has been exterminated from the core code, replaced by local STRLEN |
1696 | temporaries, or C<*_nolen()> calls. Either approach is faster than C<PL_na>, |
1697 | which is a pointer deference into the interpreter structure under ithreads, |
1698 | and a global variable otherwise. |
1699 | |
1700 | =item * |
1701 | |
7a4b5c08 |
1702 | C<Perl_mg_free()> used to leave freed memory accessible via C<SvMAGIC()> on |
5a00ee6a |
1703 | the scalar. It now updates the linked list to remove each piece of magic |
1704 | as it is freed. |
1705 | |
1706 | =item * |
1707 | |
1708 | Under ithreads, the regex in C<PL_reg_curpm> is now reference counted. This |
1709 | eliminates a lot of hackish workarounds to cope with it not being reference |
1710 | counted. |
1711 | |
1712 | =item * |
1713 | |
1714 | C<Perl_mg_magical()> would sometimes incorrectly turn on C<SvRMAGICAL()>. |
1715 | This has been fixed. |
1716 | |
1717 | =item * |
1718 | |
1719 | The I<public> IV and NV flags are now not set if the string value has |
1720 | trailing "garbage". This behaviour is consistent with not setting the |
1721 | public IV or NV flags if the value is out of range for the type. |
1722 | |
1723 | =item * |
1724 | |
1725 | SV allocation tracing has been added to the diagnostics enabled by C<-Dm>. |
1726 | The tracing can alternatively output via the C<PERL_MEM_LOG> mechanism, if |
1727 | that was enabled when the F<perl> binary was compiled. |
1728 | |
1729 | =item * |
1730 | |
1731 | Uses of C<Nullav>, C<Nullcv>, C<Nullhv>, C<Nullop>, C<Nullsv> etc have been |
1732 | replaced by C<NULL> in the core code, and non-dual-life modules, as C<NULL> |
1733 | is clearer to those unfamiliar with the core code. |
1734 | |
1735 | =item * |
1736 | |
1737 | A macro C<MUTABLE_PTR(p)> has been added, which on (non-pedantic) gcc will |
1738 | not cast away C<const>, returning a C<void *>. Macros C<MUTABLE_SV(av)>, |
1739 | C<MUTABLE_SV(cv)> etc build on this, casting to C<AV *> etc without |
1740 | casting away C<const>. This allows proper compile-time auditing of |
1741 | C<const> correctness in the core, and helped picked up some errors (now |
1742 | fixed). |
1743 | |
1744 | =item * |
1745 | |
1746 | Macros C<mPUSHs()> and C<mXPUSHs()> have been added, for pushing SVs on the |
1747 | stack and mortalizing them. |
1748 | |
1749 | =item * |
1750 | |
1751 | Use of the private structure C<mro_meta> has changed slightly. Nothing |
1752 | outside the core should be accessing this directly anyway. |
1753 | |
1754 | =item * |
1755 | |
76e3c4a8 |
1756 | A new tool, F<Porting/expand-macro.pl> has been added, that allows you |
5a00ee6a |
1757 | to view how a C preprocessor macro would be expanded when compiled. |
1758 | This is handy when trying to decode the macro hell that is the perl |
1759 | guts. |
1760 | |
1761 | =back |
1762 | |
1763 | =head1 New Tests |
1764 | |
1765 | Many modules updated from CPAN incorporate new tests. |
1766 | |
1767 | Several tests that have the potential to hang forever if they fail now |
1768 | incorporate a "watchdog" functionality that will kill them after a timeout, |
1769 | which helps ensure that C<make test> and C<make test_harness> run to |
1770 | completion automatically. (Jerry Hedden). |
1771 | |
1772 | Some core-specific tests have been added: |
1773 | |
1774 | =over 4 |
1775 | |
1776 | =item t/comp/retainedlines.t |
1777 | |
1778 | Check that the debugger can retain source lines from C<eval>. |
1779 | |
1780 | =item t/io/perlio_fail.t |
1781 | |
1782 | Check that bad layers fail. |
1783 | |
1784 | =item t/io/perlio_leaks.t |
1785 | |
1786 | Check that PerlIO layers are not leaking. |
1787 | |
1788 | =item t/io/perlio_open.t |
1789 | |
1790 | Check that certain special forms of open work. |
1791 | |
1792 | =item t/io/perlio.t |
1793 | |
1794 | General PerlIO tests. |
1795 | |
1796 | =item t/io/pvbm.t |
1797 | |
1798 | Check that there is no unexpected interaction between the internal types |
1799 | C<PVBM> and C<PVGV>. |
1800 | |
1801 | =item t/mro/package_aliases.t |
1802 | |
1803 | Check that mro works properly in the presence of aliased packages. |
1804 | |
1805 | =item t/op/dbm.t |
1806 | |
1807 | Tests for C<dbmopen> and C<dbmclose>. |
1808 | |
1809 | =item t/op/index_thr.t |
1810 | |
1811 | Tests for the interaction of C<index> and threads. |
1812 | |
1813 | =item t/op/pat_thr.t |
1814 | |
1815 | Tests for the interaction of esoteric patterns and threads. |
1816 | |
1817 | =item t/op/qr_gc.t |
1818 | |
1819 | Test that C<qr> doesn't leak. |
1820 | |
1821 | =item t/op/reg_email_thr.t |
1822 | |
1823 | Tests for the interaction of regex recursion and threads. |
1824 | |
1825 | =item t/op/regexp_qr_embed_thr.t |
1826 | |
1827 | Tests for the interaction of patterns with embedded C<qr//> and threads. |
1828 | |
1829 | =item t/op/regexp_unicode_prop.t |
1830 | |
1831 | Tests for Unicode properties in regular expressions. |
1832 | |
1833 | =item t/op/regexp_unicode_prop_thr.t |
1834 | |
1835 | Tests for the interaction of Unicode properties and threads. |
1836 | |
1837 | =item t/op/reg_nc_tie.t |
1838 | |
1839 | Test the tied methods of C<Tie::Hash::NamedCapture>. |
1840 | |
eeab323f |
1841 | =item t/op/reg_posixcc.t |
5a00ee6a |
1842 | |
1843 | Check that POSIX character classes behave consistently. |
1844 | |
1845 | =item t/op/re.t |
1846 | |
1847 | Check that exportable C<re> functions in F<universal.c> work. |
1848 | |
1849 | =item t/op/setpgrpstack.t |
1850 | |
1851 | Check that C<setpgrp> works. |
1852 | |
1853 | =item t/op/substr_thr.t |
1854 | |
1855 | Tests for the interaction of C<substr> and threads. |
1856 | |
1857 | =item t/op/upgrade.t |
1858 | |
1859 | Check that upgrading and assigning scalars works. |
1860 | |
1861 | =item t/uni/lex_utf8.t |
1862 | |
1863 | Check that Unicode in the lexer works. |
1864 | |
1865 | =item t/uni/tie.t |
1866 | |
1867 | Check that Unicode and C<tie> work. |
1868 | |
1869 | =back |
1870 | |
1871 | =head1 Known Problems |
1872 | |
1873 | This is a list of some significant unfixed bugs, which are regressions |
1874 | from either 5.10.0 or 5.8.x. |
1875 | |
1876 | =over 4 |
1877 | |
1878 | =item * |
1879 | |
1880 | C<List::Util::first> misbehaves in the presence of a lexical C<$_> |
1881 | (typically introduced by C<my $_> or implicitly by C<given>). The variable |
1882 | which gets set for each iteration is the package variable C<$_>, not the |
1883 | lexical C<$_> [RT #67694]. |
1884 | |
1885 | A similar issue may occur in other modules that provide functions which |
1886 | take a block as their first argument, like |
1887 | |
1888 | foo { ... $_ ...} list |
1889 | |
1890 | =item * |
1891 | |
1892 | The C<charnames> pragma may generate a run-time error when a regex is |
1893 | interpolated [RT #56444]: |
1894 | |
1895 | use charnames ':full'; |
1896 | my $r1 = qr/\N{THAI CHARACTER SARA I}/; |
1897 | "foo" =~ $r1; # okay |
1898 | "foo" =~ /$r1+/; # runtime error |
1899 | |
1900 | A workaround is to generate the character outside of the regex: |
1901 | |
1902 | my $a = "\N{THAI CHARACTER SARA I}"; |
1903 | my $r1 = qr/$a/; |
1904 | |
1905 | =item * |
1906 | |
1907 | Some regexes may run much more slowly when run in a child thread compared |
1908 | with the thread the pattern was compiled into [RT #55600]. |
1909 | |
5a00ee6a |
1910 | =back |
1911 | |
1912 | =head1 Deprecations |
1913 | |
1914 | The following items are now deprecated. |
1915 | |
1916 | =over 4 |
1917 | |
1918 | =item * |
1919 | |
1920 | C<Switch> is buggy and should be avoided. From perl 5.11.0 onwards, it is |
1921 | intended that any use of the core version of this module will emit a |
1922 | warning, and that the module will eventually be removed from the core |
1923 | (probably in perl 5.14.0). See L<perlsyn/"Switch statements"> for its |
1924 | replacement. |
1925 | |
1926 | =item * |
1927 | |
0f97ff05 |
1928 | The following modules will be removed from the core distribution in a future |
1929 | release, and should be installed from CPAN instead. Distributions on CPAN |
1930 | which require these should add them to their prerequisites. The core versions |
1931 | of these modules warnings will issue a deprecation warning. |
1932 | |
1933 | =over |
1934 | |
1935 | =item * |
1936 | |
1937 | C<Pod::Plainer> |
1938 | |
1939 | =back |
1940 | |
1941 | =item * |
1942 | |
ad1d1c50 |
1943 | C<suidperl> has been removed. It used to provide a mechanism to |
5a00ee6a |
1944 | emulate setuid permission bits on systems that don't support it properly. |
1945 | |
ad1d1c50 |
1946 | =item * |
1947 | |
1948 | Deprecate assignment to $[ |
1949 | |
1950 | =item * |
1951 | |
1952 | Remove attrs, which has been deprecated since 1999/10/02. |
1953 | |
1954 | =item * |
1955 | |
1956 | Deprecate use of the attribute :locked on subroutines. |
1957 | |
1958 | =item * |
1959 | |
1960 | Deprecate using "locked" with the attributes pragma. |
1961 | |
1962 | =item * |
1963 | |
1964 | Deprecate using "unique" with the attributes pragma. |
1965 | |
1966 | =item * |
1967 | |
1968 | warn if ++ or -- are unable to change the value because it's beyond the limit of representation |
1969 | |
1970 | This uses a new warnings category: "imprecision". |
1971 | |
ad1d1c50 |
1972 | =item * |
1973 | |
1974 | Make lc/uc/lcfirst/ucfirst warn when passed undef. |
1975 | |
1976 | =item * |
1977 | |
1978 | Show constant in "Useless use of a constant in void context" |
1979 | |
1980 | =item * |
1981 | |
1982 | Make the new warning report undef constants as undef |
1983 | |
1984 | =item * |
1985 | |
1986 | Add a new warning, "Prototype after '%s'" |
1987 | |
1988 | =item * |
1989 | |
1990 | Tweak the "Illegal character in prototype" warning so it's more precise when reporting illegal characters after _ |
1991 | |
1992 | =item * |
1993 | |
1994 | Unintented interpolation of $\ in regex |
1995 | |
1996 | =item * |
1997 | |
1998 | Make overflow warnings in gmtime/localtime only occur when warnings are on |
1999 | |
2000 | =item * |
2001 | |
2002 | Improve mro merging error messages. |
2003 | |
2004 | They are now very similar to those produced by Algorithm::C3. |
2005 | |
2006 | =item * |
2007 | |
2008 | Amelioration of the error message "Unrecognized character %s in column %d" |
2009 | |
2010 | Changes the error message to "Unrecognized character %s; marked by <-- |
2011 | HERE after %s<-- HERE near column %d". This should make it a little |
2012 | simpler to spot and correct the suspicious character. |
2013 | |
2014 | =item * |
2015 | |
2016 | Explicitely point to $. when it causes an uninitialized warning for ranges in scalar context |
2017 | |
5a00ee6a |
2018 | =back |
2019 | |
2020 | =head1 Acknowledgements |
2021 | |
0cd7f36e |
2022 | Some of the work in this release was funded by a TPF grant funded by |
2023 | Dijkmat BV, The Netherlands. |
5a00ee6a |
2024 | |
2025 | Steffen Mueller and David Golden in particular helped getting CPAN modules |
2026 | polished and synchronised with their in-core equivalents. |
2027 | |
2028 | Craig Berry was tireless in getting maint to run under VMS, no matter how |
2029 | many times we broke it for him. |
2030 | |
2031 | The other core committers contributed most of the changes, and applied most |
2032 | of the patches sent in by the hundreds of contributors listed in F<AUTHORS>. |
7120b314 |
2033 | |
ad1d1c50 |
2034 | Much of the work of categorizing changes in this perldelta file was contributed |
2035 | by the following porters using changelogger.bestpractical.com: |
2036 | |
2037 | Nicholas Clark, leon, shawn, alexm, rjbs, rafl, Pedro Melo, brunorc, |
2038 | anonymous, ☄, Tom Hukins, anonymous, Jesse, dagolden, Moritz Onken, |
2039 | Mark Fowler, chorny, anonymous, tmtm |
2040 | |
5a00ee6a |
2041 | Finally, thanks to Larry Wall, without whom none of this would be |
2042 | necessary. |
7120b314 |
2043 | |
2044 | =head1 Reporting Bugs |
2045 | |
2046 | If you find what you think is a bug, you might check the articles |
2047 | recently posted to the comp.lang.perl.misc newsgroup and the perl |
5a00ee6a |
2048 | bug database at http://rt.perl.org/perlbug/ . There may also be |
7120b314 |
2049 | information at http://www.perl.org/ , the Perl Home Page. |
2050 | |
2051 | If you believe you have an unreported bug, please run the B<perlbug> |
2052 | program included with your release. Be sure to trim your bug down |
2053 | to a tiny but sufficient test case. Your bug report, along with the |
2054 | output of C<perl -V>, will be sent off to perlbug@perl.org to be |
2055 | analysed by the Perl porting team. |
2056 | |
49f8307e |
2057 | If the bug you are reporting has security implications, which make it |
2058 | inappropriate to send to a publicly archived mailing list, then please send |
2059 | it to perl5-security-report@perl.org. This points to a closed subscription |
2060 | unarchived mailing list, which includes all the core committers, who be able |
2061 | to help assess the impact of issues, figure out a resolution, and help |
2062 | co-ordinate the release of patches to mitigate or fix the problem across all |
5a00ee6a |
2063 | platforms on which Perl is supported. Please only use this address for |
2064 | security issues in the Perl core, not for modules independently |
2065 | distributed on CPAN. |
49f8307e |
2066 | |
7120b314 |
2067 | =head1 SEE ALSO |
2068 | |
5a00ee6a |
2069 | The F<Changes> file for an explanation of how to view exhaustive details |
2070 | on what changed. |
7120b314 |
2071 | |
2072 | The F<INSTALL> file for how to build Perl. |
2073 | |
2074 | The F<README> file for general stuff. |
2075 | |
2076 | The F<Artistic> and F<Copying> files for copyright information. |
2077 | |
2078 | =cut |
ad1d1c50 |
2079 | |
2080 | |
2081 | =head1 TODO |
2082 | |
2083 | The following changes are a filtered list of changes which weren't backported |
2084 | to 5.10.1. They were run through changelogger.bestpractical.com and triaged |
cf8a5c47 |
2085 | by a set of Perl 5 Porters. Changes to blead after |
2086 | fafe5ad5a7e57ca14cd0844db173f3a4d6c9e8de |
2087 | |
2088 | have not yet been triaged or integrated. |
ad1d1c50 |
2089 | |
2090 | The following changes need to be |
2091 | |
2092 | 1) deleted if they don't merit inclusion |
2093 | |
2094 | OR |
2095 | |
2096 | 2) lightly copyedited and integrated into the perldelta above. Unfortunately, many of our |
2097 | commit messages are somewhat terse and require a bit more help to turn into something readable |
2098 | |
2099 | |
2100 | |
2101 | |
2102 | =head1 API |
2103 | |
2104 | =head2 Move the reg_stringify logic to Perl_sv_2pv_flags |
2105 | |
2106 | =head2 mg_copy ought to take an I32 |
2107 | |
2108 | =head2 Perl_store_cop_label() isn't meant to be part of the public API. |
2109 | |
2110 | =head2 Perl_gv_fetchmethod{,_autoload,_flags} are actually never* called with a non-NULL stash. |
2111 | So change the parameter to NN. |
2112 | |
2113 | |
2114 | =head2 Promote Perl_setdefout() to the public API. |
2115 | |
2116 | =head2 Add get_cvs() as a shortcut for STR_WITH_LEN() and Perl_get_cvn_flags() |
2117 | |
2118 | =head2 In Perl_newCONSTSUB(), sv should not be NULL. |
2119 | |
2120 | =head2 GvUNIQUE* have been defined as 0 since 2005/06/30 - high time to remove them. |
2121 | |
2122 | =head2 invert and rename PERL_MEM_LOG_STDERR to PERL_MEM_LOG_NOIMPL |
2123 | |
2124 | Most users who want PERL_MEM_LOG want the default implementation, |
2125 | give it to them. Users providing their own implementation can |
2126 | obtain current behavior by adding -DPERL_MEM_LOG_NOIMPL. |
2127 | Frankly, the average user probably wants _ENV by default too. |
2128 | |
2129 | =head2 simplify PERL_MEM_LOG |
2130 | |
2131 | This combines multiple environment variable reads into 1, |
2132 | where it looks for values like "2mst" |
2133 | -2 leading digits are atoi()d to get FD |
2134 | -m memory logging please |
2135 | -s sv logging also |
2136 | -t timestamp those please. |
2137 | |
2138 | Combining these reduces overhead such that it seemed |
2139 | worthwhile to drop all the ifdefs. TBD whether this works |
2140 | in the environment that drove the original tradeoffs. |
2141 | |
2142 | If it isnt enough, Id be tempted by a global static ptr, |
2143 | and on 1st use, is read, seen 0, a lock is taken, and getenvar |
2144 | run to populate it, unlocked, proceed. This would remove |
2145 | iterative overheads. |
2146 | |
2147 | =head2 Add a parameter "destructing" to Gv_AMupdate() |
2148 | |
2149 | This boolean parameter indicates if the function has been called |
2150 | to update the overload magic table while looking up the DESTROY |
2151 | method. In this case, it's probably best to avoid croaking if |
2152 | those tables could not be updated (for example due to a method |
2153 | that could not be loaded.) |
2154 | |
2155 | =head2 Modify the return value of Gv_AMupdate to indicate a compilation error |
2156 | |
eeab323f |
2157 | This way we'll restore most of the performance on object destruction |
ad1d1c50 |
2158 | lost by the previous commit |
2159 | |
2160 | |
2161 | =head2 local $SIG{FOO} = sub {...}; sets signal handler to SIG_DFL |
2162 | |
2163 | Re: [perl #60360] [PATCH] UPDATED: local $SIG{FOO} = sub {...}; sets signal handler to SIG_DFL |
2164 | Message-ID: <20081112234504.GI2062@tytlal.topaz.cx> |
2165 | |
2166 | Updated patch to retain source compatibility. |
2167 | |
2168 | Plus using the correct PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS |
2169 | macro and running make regen. |
2170 | |
2171 | =head2 Respecting inc_version_list while processing PERL_VENDORLIB_STEM |
2172 | |
2173 | Respecting inc_version_list while processing PERL_VENDORLIB_STEM |
2174 | From: "Mandalemula, Rajesh" <Rajesh.Mandalemula@deshaw.com> |
2175 | |
2176 | =head2 Change PL_debug behaviour |
2177 | |
2178 | |
2179 | String eval lines are now saved whenever |
2180 | a subroutine is defined, even if the eval'd string has subsequent |
2181 | syntax errors. This allows the debugger to single step into these |
2182 | subroutines. |
2183 | |
2184 | |
2185 | =head2 Tied filehandles now have an additional method EOF which provides the EOF type |
2186 | |
2187 | =head2 Perl is now smarter about adding a -I dir to the beginning or end of @INC |
2188 | |
2189 | =head2 On scope end, delete localized array elements that should not exist anymore, so that the array recovers its previous length. Honour EXISTS and DELETE for tied arrays. |
2190 | |
2191 | =head2 When a glob is deleted, mark its sub as ANON. |
2192 | |
2193 | =head2 Require a space or a newline after a "#line XXX" directive |
2194 | |
2195 | =head2 Forbid using "foreach" as an attribute |
2196 | |
2197 | (like all other control flow statements) |
2198 | |
2199 | |
2200 | =head2 Unregister signal handlers before destroying my_perl |
2201 | |
2202 | If the signal handler runs after perl_destruct() has been called, it |
2203 | will get an invalid (or NULL) my_perl when it asks for the |
2204 | thread-specific interpreter struct. This patch resets the signal |
2205 | handler for any signal previously handled by PL_csighandlerp to SIG_DFL |
2206 | before calling perl_destruct(). |
2207 | |
2208 | =head2 Perl_magic_clearsig() needs to remove magic, else delete $SIG{INT} returns undef |
2209 | |
2210 | Perl_magic_clearsig() needs to remove magic, else delete $SIG{INT} returns undef |
2211 | instead of the now-removed INT handler. |
2212 | |
2213 | =head2 [perl #66452] TMPDIR not honored when opening an anonymous temporary file |
2214 | |
2215 | [perl #66452] TMPDIR not honored when opening an anonymous temporary file |
2216 | |
2217 | =head2 The attached patch to perlio.c fixes the problem of errno getting set. |
2218 | |
2219 | While I am firmly in the school of "do not look at $! except immediately |
2220 | after a failure", I also agree that spuriously setting it is messy. But |
2221 | there is just no way of knowing where your errno might have been. |
2222 | |
2223 | The problem was that PerlIO_fast_gets() (and other nearby similar |
2224 | capability-checking PerlIO routines) set the errno (and it was being |
2225 | called a lot, from sv_gets()). I think setting the errno here was |
2226 | a mistake: checking for "can has FOO" should not set external state, |
2227 | such as the errno. The patch removes that errno trashing from all those |
2228 | routines. |
2229 | |
2230 | =head2 Trim all trailing / from "." in @INC when filling %INC |
2231 | |
2232 | This fixes bug #66942 : as a / was left in the directory name, |
2233 | $INC{"Foo.pm"} for a file loaded from the current directory |
2234 | was given the incorrect value "/Foo.pm". |
2235 | |
2236 | =head2 Don't enqueue pending signals during global destruction |
2237 | |
2238 | Global destruction is not signal-safe. PL_psig_pend may already |
2239 | be gone when the signal handler is called (with destruct_level > 0). |
2240 | NULL it before freeing it to prevent a race condition. |
2241 | |
2242 | =head2 Eliminate struct regexp_allocated and xpvio_allocated. |
2243 | |
2244 | Calculate memory allocation using regexp and XPVIO, and the offset of the first |
2245 | real structure member. This avoids tripping over alignment differences between |
2246 | X* and x*_allocated, because x*_allocated doesn't have a double in it. |
2247 | |
2248 | |
2249 | =head1 internals |
2250 | |
2251 | =head2 [perl #47047] Use of inherited AUTOLOAD for non-method is deprecated |
2252 | |
2253 | =head2 Remove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_na when code is within the perl source tree |
2254 | |
2255 | =head2 Replace our assert-which-can-be-caught-by-eval with the real deal from the standard C library. |
2256 | |
2257 | =head2 Tweak Perl_sv_upgrade() so that references can upgrade to SVt_PV |
2258 | |
2259 | =head2 Eliminate prelen from struct regexp. |
2260 | |
2261 | =head2 Change Perl_av_iter_p() to return IV* rather than I32* (which means |
2262 | |
2263 | =head2 Reorder the external regexp flags to get RXf_PMf_STD_PMMOD into the |
2264 | |
2265 | lowest 4 bits (which saves a shift), and the "flags indicating special |
2266 | patterns" into contiguous bits. This makes everything a little tidier, |
2267 | and saves 88 bytes (woohoo!) of object file with -Os on x86 FreeBSD. |
2268 | |
2269 | |
2270 | =head2 Re-implement the SvOOK() hack to store the offset as a BER encoded number in the part of the PVX that is being released. |
2271 | (It will always |
2272 | fit, as chopping off 1 byte gives just enough space for recording a |
2273 | delta of up to 127). This allows SvOOK() to co-exist with SvIOK_on(), |
2274 | which means all the calls to SvOOK_off() [with the possibility of a |
2275 | call to sv_backoff()] in SvIOK_on() can be removed. This ought to make |
2276 | a lot of straight line code a little bit simpler. |
2277 | OOK()d scalars can now be SVt_PV, as the IVX isn't needed. |
2278 | |
2279 | =head2 Abolish wraplen from struct regexp. We're already storing it in SvCUR. |
2280 | |
2281 | =head2 Make Perl_pregcomp() use SvUTF8() of the pattern, rather than the flag bit in pmflags, to decide whether the pattern is UTF-8. |
2282 | |
2283 | =head2 Abolish RXf_UTF8. Store the UTF-8-ness of the pattern with SvUTF8(). |
2284 | |
2285 | =head2 In struct regexp move the member paren_names to the IV union. |
2286 | |
2287 | =head2 Make REGEXP a type distinct from SV. (Much like AV, CV, GV, HV). |
2288 | |
2289 | =head2 Allow sv_setsv_flags() to copy SVt_REGEXP much like it copies SVt_FORMAT - the just string buffer. |
2290 | |
2291 | |
eeab323f |
2292 | =head2 Correct a long-standing ithreads reference counting anonmaly |
ad1d1c50 |
2293 | |
2294 | The reference count only needs "doubling" when the scalar is pushed onto |
2295 | PL_regex_padav for the second time. |
2296 | |
2297 | |
2298 | =head2 In PL_regexp_padav, store regexps via real references, rather than hiding them within IVs. |
2299 | |
2300 | We can do this now that they are real SV pointers. |
2301 | |
2302 | =head2 With regexps stored as real RVs, we can eliminate SvREPADTMP(). |
2303 | |
2304 | =head2 REGEXPs are now stored directly in PL_regex_padav, rather than indirectly via RVs. |
2305 | |
2306 | =head2 Remove code that protected pp_qr against REGEXPs going away during global destruction whilst they were stored via true references in PL_regex_padav. |
2307 | |
2308 | =head2 Remove PM_GETRE_SAFE and PM_SETRE_SAFE as nothing uses them. |
2309 | |
2310 | =head2 Note the U8 sized space created by removing -P, and check that it is now an illegal command line flag. |
2311 | |
2312 | =head2 Pack the recycled pad offsets into an SV at PL_regex_pad[0]. |
2313 | |
2314 | =head2 Re-order so that the !SvOK() case is last (which should be rare) |
2315 | |
2316 | =head2 Extend PUSHFORMAT() to take a second parameter to set retop, to save NULLing it and then reassigning. |
2317 | |
2318 | =head2 Split struct block_sub into struct block_sub and struct block_format. |
2319 | |
2320 | Split struct block_sub into struct block_sub and struct block_format. |
2321 | (CXt_SUB and CXt_FORMAT were using some comon members, but some members |
2322 | were only for one or the other.) |
2323 | |
2324 | =head2 Change the wantarray result from caller from IV to bool for the SCALAR/ARRAY case. |
2325 | |
2326 | This doesn't contradict the documentation, as there isn't any. Oops. |
2327 | |
2328 | |
2329 | =head2 Give G_VOID, G_SCALAR and G_ARRAY the same numeric values as OPf_WANT_VOID, OPf_WANT_SCALAR and OPf_WANT_LIST. |
2330 | |
2331 | |
2332 | =head2 Squeeze the context type down to 4 bits, and move the private flags to fit within the next 4 bits. |
2333 | |
2334 | |
2335 | =head2 In struct block change blku_type from U8 to U16, and the "spare" U8 to U16, with the lockstep changes in struct subst. |
2336 | Eliminate lval from |
2337 | struct block_sub, and instead store it in the U16 in struct block. |
2338 | |
2339 | |
2340 | =head2 In struct block_eval, eliminate old_in_eval and old_op_type by storing the data in blk_u16. |
2341 | |
2342 | |
2343 | =head2 The layout for struct block_loop under ithreads can be simplified. |
2344 | |
2345 | Instead of wedging the pad offset into a void* iterdata, and always |
2346 | storing PL_comppad even when it isn't used, instead do this: |
2347 | |
eeab323f |
2348 | PAD *oldcomppad; /* Also used for the GV, if targoffset is 0 */ |
2349 | /* This is also accessible via cx->blk_loop.my_op->op_targ */ |
2350 | PADOFFSET targoffset; |
ad1d1c50 |
2351 | |
2352 | and store the GV pointer in oldcompad. Pointers to pointers seems |
2353 | cleaner. This also allows us to eliminate the flag bit CXp_PADVAR. |
2354 | |
2355 | |
2356 | =head2 In XS_PerlIO_get_layers() take advantage of the implementation of |
2357 | |
2358 | In XS_PerlIO_get_layers() take advantage of the implementation of |
2359 | PerlIO_get_layers(), by co-opting the new SVs it creates, rather than |
2360 | copying them. |
2361 | |
2362 | |
2363 | =head2 Micro-optimise the order of the context types. [Because I can :-)] |
2364 | |
2365 | =head2 [patch] optimize OP_IS_(FILETEST|SOCKET) macros |
2366 | |
2367 | =head2 Eliminate ck_lengthconst. |
2368 | |
2369 | =head2 Chainsaw DEBUG_S out, as suggested by Vincent Pit. |
2370 | |
2371 | =head2 Unsupported private API functions are now declared "static" to prevent leakage to the public API |
2372 | |
2373 | =head2 Perl_cv_ckproto() is not part of the public API, and not used anywhere. It has been removed |
2374 | |
2375 | =head2 Remove all the 5005threads specific mutex macros, which are now vestigial. |
2376 | |
2377 | =head2 Do not honor TMPDIR for anonymous temporary files when tainting |
2378 | |
2379 | Use a default of /tmp on Unixes when TMPDIR is unset or empty, or |
2380 | when creation of a temporary file in it fails |
2381 | |
2382 | =head2 Add a pluggable hook in op_free() |
2383 | |
2384 | |
6fa80ea2 |
2385 | |
2386 | |
cf8a5c47 |
2387 | =head2 Dual-lifed modules moved |
2388 | |
2389 | Dual-lifed modules maintained primarily in the Perl core now live in ext/. |
2390 | Dual-lifed modules maintained primarily on CPAN now live in cpan/ |
2391 | |
2392 | =head2 MAD now builds on C++ |
2393 | |
2394 | Fix building MAD with C++ - a MAD_PV of "" is illegal, as it will be free()d. |
2395 | |
2396 | commit 4e73d6a402bc493d66d19c409c41e1e271c6450b |
2397 | Author: Nicholas Clark <nick@ccl4.org> |
2398 | Date: Wed Sep 23 11:59:31 2009 +0100 |
2399 | |
2400 | Add a --chdir option to configpm, and use this in the Win32 Makfiles. |
2401 | |
2402 | A slight Makefile simplification, and another move towards Win32 standardising |
2403 | on running miniperl as $(MINIPERL), which currently is ..\miniperl.exe |
2404 | |
2405 | |
2406 | =head2 miniperl no longer builds with UTF-8 support in the regexp engine to support the bootstrapping process |
2407 | |
2408 | This allows a build to complete with PERL_UNICODE set and a UTF-8 locale. |
2409 | Without this there's a bootstrapping problem, as miniperl can't load the UTF-8 |
2410 | components of the regexp engine, because they're not yet built. |
2411 | |
2412 | =head2 miniperl now has a restricted @INC |
2413 | |
2414 | Restrict miniperl to just -I..., the split of $ENV{PERL5LIB}, and "." in @INC |
2415 | |
2416 | =head2 miniperl now identifies itself in the output of miniperl -V |
2417 | |
2418 | PERL_IS_MINIPERL is now declared in the verbose configuration output. |
2419 | |
2420 | |
2421 | =head2 Upgrade to Class::ISA 0.34 |
2422 | =head2 Deprecate Class::ISA from core |
2423 | |
2424 | Whihch of htose is right? |
2425 | |
2426 | =head2 Upgrade to Attribute::Handlers 0.87 |
2427 | =head2 Upgrade to AutoLoader 5.70 |
2428 | |
2429 | =head2 Upgrade to IO::Zlib 1.10 |
2430 | |
2431 | =head2 Note that Pod::Plainer is upgraded, and deprecated from core. |
2432 | |
2433 | =head2 Parallel testing is pretty much done. |
2434 | |
2435 | =head2 Update parent to CPAN version 0.223 |
2436 | |
2437 | =head2 Update Log::Message::Simple to CPAN version 0.06 |
2438 | =head2 Updated Math::BigRat to CPAN version 0.24 |
2439 | |
2440 | =head2 Update Archive::Tar to CPAN version 1.54 |
2441 | |
2442 | =head2 Update IPC::Cmd to CPAN version 0.50 |
2443 | |
2444 | =head2 Updated CPANPLUS::Dist::Build to CPAN version 0.40 |
2445 | |
2446 | =head2 Updated Module::Loaded to CPAN version 0.06 |
2447 | |
2448 | =head2 Upgrade to Encode 2.37 |
2449 | |
2450 | commit d8723a6a74b2c12e9d732728dbe717672ab893f2 |
2451 | Author: Salvador Ortiz Garcia <sog@msg.com.mx> |
2452 | Date: Sun Sep 6 23:41:57 2009 +0200 |
2453 | |
2454 | Corrupt filename when setting %INC entry in a @INC hook |
2455 | |
2456 | The code in pp_ctl.c after calling an @INC hook blindly assumes that the |
2457 | SV setted by the user in %INC is an SVPV (SvPOK true) for setting the |
2458 | filename. So when the user uses other scalar types, the output of |
2459 | __FILE__, warn, die, caller, etc. shows random garbage. |
2460 | |
2461 | Author: Zefram <zefram@fysh.org> |
2462 | Date: Sun Sep 6 17:29:43 2009 +0200 |
2463 | |
2464 | Fix [perl #66970] Incorrect coderef in MODIFY_CODE_ATTRIBUTES |
2465 | |
2466 | Attribute handlers being applied to a temporary CV has actually been |
2467 | reported as a bug, #66970. The attached patch fixes the bug, by |
2468 | changing the order in which things happen: attributes are now applied |
2469 | after the temporary CV has been merged into the existing CV or has |
2470 | otherwise been added to the appropriate GV. |
2471 | |
2472 | The change breaks part of Attribute::Handlers. Part of A:H searches the |
2473 | package to find the name of the sub to which a :ATTR attribute is being |
2474 | applied, and the correct time at which to launch that search depends |
2475 | crucially on the order in which the CV construction events occur. So |
2476 | this patch also includes a change to A:H, to make it detect which way |
2477 | things happen. The resulting A:H works either way, which is essential |
2478 | for its dual-life nature. |
2479 | |
2480 | commit 354c724e8ab74f150e14800acc80d505949161f5 |
2481 | Author: Nicholas Clark <nick@ccl4.org> |
2482 | Date: Fri Sep 4 11:04:30 2009 +0100 |
2483 | |
2484 | OS/2 hadn't been updated to cope with the ext/ restructuring. |
2485 | |
2486 | I don't have OS/2, so I can't test this, but the code in Configure will assume |
2487 | flat directories, because ext/File-Glob is present, and hence not search |
2488 | recursively and not find the OS/2 extensions if they are copied into ext/OS2/* |
2489 | |
2490 | I believe that without this change OS/2 will not have been building since the |
2491 | change to flattened ext. This change may not be sufficient to get OS/2 |
2492 | building again, but it is in the right direction. |
2493 | |
2494 | commit bf6bfb44d9f2e07e4bd25b8eba2d9132fcec637e |
2495 | Author: Abhijit Menon-Sen <ams@toroid.org> |
2496 | Date: Fri Sep 4 12:41:56 2009 +0530 |
2497 | |
2498 | Entity-encode E<0xNNNN> and E<0NNN> correctly |
2499 | |
2500 | Fixes bug #68964 reported by samv, where pod2html encoded E<0x2070> to |
2501 | &0x2070 and not ⁰. perlpodspec says E<0x2070> should work, but the |
2502 | code in Pod::Html accepted only E<x2070>. The new code accepts both, and |
2503 | processes octal entities correctly as well. |
2504 | |
2505 | Signed-off-by: Abhijit Menon-Sen <ams@toroid.org> |
2506 | |
2507 | commit 61131c9411631986e27506a8a66b4d43f2f3e4e0 |
2508 | Author: Karl Williamson <khw@khw-desktop.(none)> |
2509 | Date: Thu Sep 3 11:29:30 2009 -0600 |
2510 | |
2511 | Add missing files from Unicode 5.1 Character Database |
2512 | |
2513 | |
2514 | =head2 Deprecated numerous Perl 4 era libraries: |
2515 | |
2516 | Deprecate termcap.pl with a warning |
2517 | Deprecate tainted.pl with a warning |
2518 | Deprecate stat.pl with a warning |
2519 | Deprecate shellwords.pl with a warning |
2520 | Deprecate pwd.pl with a warning |
2521 | Deprecate open3.pl with a warning |
2522 | Deprecate open2.pl with a warning |
2523 | Deprecate newgetopt.pl with a warning |
2524 | Deprecate look.pl with a warning |
2525 | Deprecate lib/find{,depth}.pl with a warning |
2526 | Deprecate importenv.pl with a warning |
2527 | Deprecate hostname.pl with a warning |
2528 | Deprecate getopts.pl with a warning |
2529 | Deprecate getopt.pl with a warning |
2530 | Deprecate getcwd.pl with a warning |
2531 | Deprecate flush.pl with a warning |
2532 | Deprecate fastcwd.pl with a warning |
2533 | Deprecate exceptions.pl with a warning |
2534 | Deprecate ctime.pl with a warning |
2535 | Deprecate complete.pl with a warning |
2536 | Deprecate cacheout.pl with a warning |
2537 | Deprecate bigrat.pl with a warning |
2538 | Deprecate bigint.pl with a warning |
2539 | Deprecate bigfloat.pl with a warning |
2540 | Deprecate assert.pl with a warning |
2541 | Deprecate abbrev.pl with a warning |
2542 | Deprecate dotsh.pl with a warning |
2543 | Deprecate timelocal.pl with a warning |
2544 | |
2545 | |
2546 | =head2 set PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS to 0 and enable proper POSIX char class matching |
2547 | |
2548 | This also alters which Unicode properties that the POSIX character |
2549 | class and the Perl "special" character classes, like \w and \d map |
2550 | to. At the same time it allows a number of tests for POSIX character |
2551 | class behaviour to be switched from todo to non todo. Legacy testing |
2552 | is still available by changing the define and setting the |
2553 | PERL_TEST_LEGACY_POSIX_CC value to true. |
2554 | |
2555 | |
2556 | commit 89904c08923161afd23c629d5c2c7472a09c16bb |
2557 | Author: Lubomir Rintel <lkundrak@v3.sk> |
2558 | Date: Mon Aug 31 11:45:23 2009 +0200 |
2559 | |
2560 | Fix unpack of abstract socket addrs with nul byte |
2561 | |
2562 | Addresses of Linux abstract namespace sockets are not nul-terminated C |
2563 | strings, but rather an arbitrary character arrays. According to unix(7) |
2564 | documentation from Linux, "Null bytes in the name have no special |
2565 | significance." |
2566 | |
2567 | unpack_sockaddr_un() was just throwing the initial nul byte away and |
2568 | then treating the rest like ordinary C string when computing the length |
2569 | of the address, which was wrong. This fix utilizes the length of the PV |
2570 | for addresses starting with nul instead. |
2571 | |
2572 | The regression test was extended with check for the problem. |
2573 | |
2574 | |
2575 | =head2 Upgrade Term::ANSIColor to 2.02 |
2576 | =head2 Update Text::Balanced to 2.02 |
2577 | =head2 Update Module::Build to 0.35 |
2578 | |
2579 | commit 16fa5c119c4bda5c0396a5f81296bd1ccc128a9c |
2580 | Author: Vincent Pit <perl@profvince.com> |
2581 | Date: Thu Aug 27 11:13:09 2009 +0200 |
2582 | |
2583 | Speed up repeatcpy() by at least 40% for 1-char or numerous repeats |
2584 | |
2585 | And don't make it receive the interpreter anymore. |
2586 | |
2587 | For 1-char repeats, use memset(). Otherwise, use the old implementation up |
2588 | to some (small) length, and then use memcpy() in a binary manner, based on |
2589 | what we previously copied. |
2590 | |
2591 | Note that we use memcpy() so both strings shouldn't overlap. The previous |
2592 | implementation didn't allow this as well. This would be a good place to use |
2593 | the restrict keyword from C99. I'm not sure if Configure has a probe for it. |
2594 | |
2595 | =head2 set utf8 bit on inferred method names when C<use utf8> |
2596 | |
2597 | =head2 New debugging flag -DB now dumps subroutine definitions, |
2598 | leaving -Dx for its original purpose of dumping syntax trees. |
2599 | |
2600 | |
2601 | =head2 Make MAD understand the "..." operator |
2602 | |
2603 | |
2604 | =head2 Add support for Abstract namespace sockets |
2605 | |
2606 | Abstract namespace sockets are Linux-specific socket type that live in |
2607 | AF_UNIX family, slightly abusing it to be able to use arbitrary |
2608 | character arrays as addresses: They start with nul byte and are not |
2609 | terminated by nul byte, but with the length passed to the socket() |
2610 | system call. |
2611 | |
2612 | Added regression test for the correct address length computation. |
2613 | |
2614 | Signed-off-by: Lubomir Rintel <lkundrak@fedoraproject.org> |
2615 | |
2616 | =head2 constant has been upgraded to 1.19. Describe the improvements. |
2617 | |
2618 | =head2 Note that linearising C3 MRO is now 40% faster for single inheritance. |
2619 | |
2620 | =head2 Fix a B::Deparse bug - constants and PCSs were appearing as subroutine stubs. |
2621 | |
2622 | |
2623 | =head2 upgrade CGI from 3.43 to 3.45 |
2624 | |
2625 | commit d7c0d2821cad1d2e5b6b3d6440e7c22bfaae9559 |
2626 | Author: David Mitchell <davem@iabyn.com> |
2627 | Date: Thu Aug 20 19:29:35 2009 +0100 |
2628 | |
2629 | add -DM flag to track smartmatch resolution |
2630 | |
2631 | |
2632 | =head2 bump Safe version to 2.18 |
2633 | |
2634 | =head2 Win32: Don't explicitly link against msvcrt when using MinGW. |
2635 | |
2636 | The latest releases of MinGW generate hard linker errors |
2637 | when msvcrt is specified explicitly. It will still link |
2638 | against this library implicitly anyways, so specifying it |
2639 | isn't needed. |
2640 | |
2641 | =head2 Upgrade to threads::shared 1.31 |
2642 | |
2643 | |
2644 | =head2 Update threads to 1.74 |
2645 | |
2646 | |
2647 | |
2648 | =head2 Synchronize with CPAN's Attribute::Handlers 0.86 |
2649 | =head2 Synchronize AutoLoader with CPAN's 5.69 |
2650 | =head2 ExtUtils::MakeMaker 6.55_02 |
2651 | |
2652 | =head2 Removed vestigal support for Tenon Intersystems MachTen Unix layer for MacOS Classic. |
2653 | |
2654 | =head2 Remove the port to MiNT. It's a dead platform that hasn't had any love since 5.005 |
2655 | =head2 Final release of version-0.77 for inclusion in 5.10.1 |
2656 | |
2657 | |
2658 | =head2 Add security contact information to perlsec |
2659 | |
2660 | This patch inserts a short paragraph with security contact |
2661 | information near the top of the "Perl Security" documentation |
2662 | page. This would seem a likely place someone would look for |
2663 | such information (rather than INSTALL or perldelta where it |
2664 | lives today). I've put it at the top, not the bottom |
2665 | to make it easier to find. |
2666 | |
2667 | commit 7332a6c406299d5e73836d2410689bd7c3ae4782 |
2668 | Author: Vincent Pit <perl@profvince.com> |
2669 | Date: Fri Jan 2 10:26:57 2009 +0100 |
2670 | |
2671 | Introduce "delete local" |
2672 | |
2673 | =head2 autodie 2.06_01 |
6fa80ea2 |
2674 | |