Further paring down of perldelta
[p5sagit/p5-mst-13.2.git] / pod / perl5113delta.pod
CommitLineData
2e8102e6 1=head1 NAME
2
3[ this is a template for a new perldelta file. Any text flagged as
4XXX needs to be processed before release. ]
5
6perldelta - what is new for perl v5.11.3
7
8=head1 DESCRIPTION
9
10This document describes differences between the 5.11.3 release and
11the 5.11.3 release.
12
13If you are upgrading from an earlier release such as 5.11.3, first read
14the L<perl5XXXdelta>, which describes differences between 5.11.3 and
155.10.0
16
17=head1 Notice
18
19XXX Any important notices here
20
21=head1 Incompatible Changes
22
ecb37473 23=item Filehandles are blessed directly into C<IO::Handle::>, as L<FileHandle/> is merely a wrapper around L<IO::Handle/>.
2e8102e6 24
25
26=head1 Core Enhancements
27
28XXX New core language features go here. Summarise user-visible core language
29enhancements. Particularly prominent performance optimisations could go
30here, but most should go in the L</Performance Enhancements> section.
31
283b82dc 32=head2 Unicode version
33
34Perl is shipped with the latest Unicode version, 5.2, October 2009. See
35L<http://www.unicode.org/versions/Unicode5.2.0> for details about this release
36of Unicode.
37
37e2e78e 38But, an installation can now fairly easily change Perl to operate on any
39Unicode release. Perl is shipped with the latest official release, but
40an installation can download and install any prior release from Unicode, and
41cause Perl to work with that (or even multiple releases). Instructions are in
42L<perlunicode>.
43
8d814567 44=head2 Unicode properties
45
46Perl can now handle every Unicode character property. A new pod,
47L<perluniprops>, lists all available non-Unihan character properties. By
48default the Unihan properties and certain others (deprecated and Unicode
49internal-only ones) are not exposed. See below for more details on
50these; there is also a section in the pod listing them, and why they are
51not exposed.
52
53Perl now fully supports the Unicode compound-style of using C<=> and C<:>
54in writing regular expressions: C<\p{property=value}> and
55C<\p{property:value}> (both of which mean the same thing).
56
57Perl now supports fully the Unicode loose matching rules for text
58between the braces in C<\p{...}> constructs. In addition, Perl also allows
59underscores between digits of numbers.
60
61All the Unicode-defined synonyms for properties and property values are
62now accepted.
63
37e2e78e 64C<qr/\X/>, which matches a Unicode logical character, has been expanded to work
65better with various Asian languages. It now is defined as an C<extended
66grapheme cluster>. (See L<http://www.unicode.org/reports/tr29/>). One change
67due to this is that C<\X> will match the whole sequence C<S<CR LF>>. Another
68change is that C<\X> will match an isolated mark. Marks generally come after a
69base character, but it is possible in Unicode to have them in isolation, and
70C<\X> will now handle that case. Otherwise, this change should be transparent
71for the non-affected languages.
72
8d814567 73C<\p{...}> matches using the Canonical_Combining_Class property were
74completely broken in previous Perls. This is now fixed.
75
76In previous Perls, the Unicode Decomposition_Type=Compat property and a
77Perl extension had the same name, which led to neither matching all the
78correct values (with more than 100 mistakes in one, and several thousand
79in the other). The Perl extension has now been renamed to be
80Decomposition_Type=Noncanonical (short: dt=noncanon). It has the same
81meaning as was previously intended, namely the union of all the
82non-canonical Decomposition types, with Unicode Compat being just one of
83those.
84
85C<\p{Uppercase}> and C<\p{Lowercase}> have been brought into line with the
86Unicode definitions. This means they each match a few more characters
87than previously.
88
89C<\p{Cntrl}> now matches the same characters as C<\p{Control}>. This means it
90no longer will match Private Use (gc=co), Surrogates (gc=cs), nor Format
91(gc=cf) code points. The Format code points represent the biggest
92possible problem. All but 36 of them are either officially deprecated
93or strongly discouraged from being used. Of those 36, likely the most
94widely used are the soft hyphen (U+00AD), and BOM, ZWSP, ZWNJ, WJ, and
95similar, plus Bi-directional controls.
96
97C<\p{Alpha}> now matches the same characters as C<\p{Alphabetic}>. The Perl
98definition included a number of things that aren't really alpha (all
99marks), while omitting many that were. The Unicode definition is
100clearly better, so we are switching to it. As a direct consequence, the
101definitions of C<\p{Alnum}> and C<\p{Word}> which depend on Alpha also change.
102
103C<\p{Word}> also now doesn't match certain characters it wasn't supposed
104to, such as fractions.
105
106C<\p{Print}> no longer matches the line control characters: tab, lf, cr,
107ff, vt, and nel. This brings it in line with the documentation.
108
109\p{Decomposition_Type=Canonical} now includes the Hangul syllables
110
111The Numeric type property has been extended to include the Unihan
112characters.
113
114There is a new Perl extension, the 'Present_In', or simply 'In'
115property. This is an extension of the Unicode Age property, but
116C<\p{In=5.0}> matches any code point whose usage has been determined as of
117Unicode version 5.0. The C<\p{Age=5.0}> only matches code points added in 5.0.
118
119A number of properties did not have the correct values for unassigned
120code points. This is now fixed. The affected properties are
121Bidi_Class, East_Asian_Width, Joining_Type, Decomposition_Type,
122Hangul_Syllable_Type, Numeric_Type, and Line_Break.
123
124The Default_Ignorable_Code_Point, ID_Continue, and ID_Start properties
125have been updated to their current definitions.
126
127Certain properties that are supposed to be Unicode internal-only were
128erroneously exposed by previous Perls. Use of these in regular
129expressions will now generate a deprecated warning message, if those
130warnings are enabled. The properties are: Other_Alphabetic,
131Other_Default_Ignorable_Code_Point, Other_Grapheme_Extend,
132Other_ID_Continue, Other_ID_Start, Other_Lowercase, Other_Math, and
133Other_Uppercase.
134
8d814567 135An installation can now fairly easily change which Unicode properties
136Perl understands. As mentioned above, certain properties are by default
137turned off. These include all the Unihan properties (which should be
138accessible via the CPAN module Unicode::Unihan) and any deprecated or
139Unicode internal-only property that Perl has never exposed.
140
141The files in the To directory are now more clearly marked as being
142stable, directly usable by applications. New hash entries in them give
143the format of the normal entries which allows for easier machine
144parsing. Perl can generate files in this directory for any property,
145though most are suppressed. An installation can choose to change which
146get written. Instructions are in L<perluniprops>.
147
2e8102e6 148=head1 New Platforms
149
150XXX List any platforms that this version of perl compiles on, that previous
151versions did not. These will either be enabled by new files in the F<hints/>
152directories, or new subdirectories and F<README> files at the top level of the
153source tree.
154
155=head1 Modules and Pragmata
156
157XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
158go here, in a list ordered by distribution name. Minimally it should be the
159module version, but it's more useful to the end user to give a paragraph's
160summary of the module's changes. In an ideal world, dual-life modules would
161have a F<Changes> file that could be cribbed.
162
163=head2 New Modules and Pragmata
164
165=over 4
166
ecb37473 167=item C<warnings::fatal_enabled>
168
169 Add code and starting perldoc for warnings::fatal_enabled.
170
171 This is an analog for warnings::enabled, except it tests whether the
172 given category has been set fatal using "use warnings FATAL => foo".
173 This is mostly for symmetry.
174
175 Assumes that the fatal bit for a category will have an offset one higher
176 than the regular bit for the category, because otherwise much rewriting
177 of __chk would be required.
2e8102e6 178
179XXX
180
181=back
182
183=head2 Pragmata Changes
184
185=over 4
186
ecb37473 187=item Don't make C<use legacy> die on unknown legacy names
188
189So we can use C<use legacy "qubits"> to avoid the new "qubit" behaviour,
190without worrying about perls that didn't have qubit support at all. :)
191
192NOTE: C<B<legacy>> will be removed before 5.12.0.
2e8102e6 193
2e8102e6 194
195=back
196
197=head2 Updated Modules
198
199=over 4
200
201=item C<XXX>
202
874e3373 203 Updated CPANPLUS to cpan release 0.90
204 Bring up ExtUtils::MakeMaker to 6.56 - no functional changes from 6.55_03
205 Upgrade to threads 1.75
206
207 Import CPAN.pm 1.94_53 from CPAN
208
209 Updated Module::Build to 0.35_15
210
211 Update Cwd / PathTools to 3.31 to get us a non-devel version number based on a chat with Steffen. No code changes.
212
213 Updated to Pod::Simple 3.11 from CPAN [perl #71004]
214
215
216 Update Archive::Extract to cpan version 0.36
217
2e8102e6 218XXX
ecb37473 219=item
220
221 File::Find was not resolving paths of the form "/..////../" correctly.
222 Fixed by adding a quantifier to the substitution parameter in
223 contract_name().
2e8102e6 224
225=back
226
227=head1 Utility Changes
228
229XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
230here. Most of these are built within the directories F<utils> and F<x2p>.
231
232=over 4
233
234=item F<XXX>
235
236XXX
237
874e3373 238 Perlbug no longer reports "Message sent" when it hasn't actually sent the message
2e8102e6 239=back
240
241=head1 New Documentation
242
243XXX Changes which create B<new> files in F<pod/> go here.
244
245=over 4
246
247=item L<XXX>
248
249XXX
250
251=back
252
253=head1 Changes to Existing Documentation
254
255XXX Changes which significantly change existing files in F<pod/> go here.
256Any changes to F<pod/perldiag.pod> should go in L</New or Changed Diagnostics>.
257
258
874e3373 259 legalize =begin foo bar
260
261 more aggressively deprecate L<section> and L<"section">
262
263 remove prohibition against L<text|href>
264
265 Document if.pm in perlfunc
266
267
268
2e8102e6 269=head1 Performance Enhancements
270
271XXX Changes which enhance performance without changing behaviour go here. There
272may well be none in a stable release.
273
274=over 4
275
276=item *
277
278XXX
279
280=back
281
282=head1 Installation and Configuration Improvements
283
284XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
285go here.
286
287=head2 Configuration improvements
288
289XXX
290
291=head2 Compilation improvements
292
874e3373 293 Make distclean work again
2e8102e6 294XXX
295
ecb37473 296=head2 Testing improvements
297
298=over 4
299
300=item It's now possible to override C<PERL5OPT> and friends in F<t/TEST>
301
302=back
303
2e8102e6 304=head2 Platform Specific Changes
305
306=over 4
307
874e3373 308=item Win32
2e8102e6 309
ecb37473 310=over 4
311
312=item *
313
314Always add a manifest resource to C<perl.exe> to specify the <trustInfo>
315settings for Windows Vista and later. Without this setting Windows
316will treat C<perl.exe> as a legacy application and apply various
317heuristics like redirecting access to protected file system areas
318(like the "Program Files" folder) to the users "VirtualStore"
319instead of generating a proper "permission denied" error.
320
321For VC8 and VC9 this manifest setting is automatically generated by
322the compiler/linker (together with the binding information for their
323respective runtime libraries); for all other compilers we need to
324embed the manifest resource explicitly in the external resource file.
325
326This change also requests the Microsoft Common-Controls version 6.0
327(themed controls introduced in Windows XP) via the dependency list
328in the assembly manifest. For VC8 and VC9 this is specified using the
329C</manifestdependency> linker commandline option instead.
330
331=back
332
333=item cygwin
334
335=over 4
336
337=item Enable IPv6 support on cygwin 1.7 and newer
338
339=back
874e3373 340
341=item OpenVMS
2e8102e6 342
ecb37473 343=over 4
344
345=item Make -UDEBUGGING the default on VMS for 5.12.0.
346
347Like it has been everywhere else for ages and ages. Also make
348command-line selection of -UDEBUGGING and -DDEBUGGING work in
349configure.com; before the only way to turn it off was by saying
350no in answer to the interactive question.
351
2e8102e6 352=back
353
354=head1 Selected Bug Fixes
355
356XXX Important bug fixes in the core language are summarised here.
357Bug fixes in files in F<ext/> and F<lib/> are best summarised in
358L</Modules and Pragmata>.
359
360=over 4
361
362=item *
363
ecb37473 364Ensure that pp_qr returns a new regexp SV each time. Resolves RT #69852.
365
366Instead of returning a(nother) reference to the (pre-compiled) regexp in the
367optree, use reg_temp_copy() to create a copy of it, and return a reference to
368that. This resolves issues about Regexp::DESTROY not being called in a timely
369fashion (the original bug tracked by RT #69852), as well as bugs related to
370blessing regexps, and of assigning to regexps, as described in correspondence
371added to the ticket.
372
373It transpires that we also need to undo the SvPVX() sharing when ithreads
374cloning a Regexp SV, because mother_re is set to NULL, instead of a cloned
375copy of the mother_re. This change might fix bugs with regexps and threads in
376certain other situations, but as yet neither tests nor bug reports have
377indicated any problems, so it might not actually be an edge case that it's
378possible to reach.
379
380=item *
381
382Several compilation errors and segfaults when perl was built with C<-Dmad> were fixed.
383
384=item *
385
386Fixes for lexer API changes in 5.11.2 which broke NYTProf's savesrc option.
2e8102e6 387
388=back
389
390=head1 New or Changed Diagnostics
391
392XXX New or changed warnings emitted by the core's C<C> code go here.
393
394=over 4
395
396=item C<XXX>
397
874e3373 398 Make split warn in void context
2e8102e6 399XXX
400
401=back
402
403=head1 Changed Internals
404
405XXX Changes which affect the interface available to C<XS> code go here.
406
407=over 4
408
409=item *
410
411XXX
412
413=back
414
415=head1 New Tests
416
417XXX Changes which create B<new> files in F<t/> go here. Changes to
418existing files in F<t/> aren't worth summarising, although the bugs that
419they represent may be.
420
421=over 4
422
423=item F<XXX>
424
425XXX
426
427=back
428
429=head1 Known Problems
430
431XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
432tests that had to be C<TODO>ed for the release would be noted here, unless
433they were specific to a particular platform (see below).
434
435This is a list of some significant unfixed bugs, which are regressions
436from either 5.11.3 or 5.11.3.
437
438=over 4
439
440=item *
441
442XXX
443
444=back
445
446=head1 Deprecations
447
448XXX Add any new known deprecations here.
449
450The following items are now deprecated.
451
452=over 4
453
13a4a486 454=item Use of "goto" to jump into a construct is deprecated
2e8102e6 455
13a4a486 456Using C<goto> to jump from an outer scope into an inner
457scope is now deprecated. This rare use case was causing
458problems in the implementation of scopes.
2e8102e6 459
460=back
461
462=head1 Platform Specific Notes
463
464XXX Any changes specific to a particular platform. VMS and Win32 are the usual
465stars here. It's probably best to group changes under the same section layout
466as the main perldelta
467
468=head1 Obituary
469
470XXX If any significant core contributor has died, we've added a short obituary
471here.
472
473=head1 Acknowledgements
474
475XXX The list of people to thank goes here.
476
477
478=head1 Reporting Bugs
479
480If you find what you think is a bug, you might check the articles
481recently posted to the comp.lang.perl.misc newsgroup and the perl
482bug database at http://rt.perl.org/perlbug/ . There may also be
483information at http://www.perl.org/ , the Perl Home Page.
484
485If you believe you have an unreported bug, please run the B<perlbug>
486program included with your release. Be sure to trim your bug down
487to a tiny but sufficient test case. Your bug report, along with the
488output of C<perl -V>, will be sent off to perlbug@perl.org to be
489analysed by the Perl porting team.
490
491If the bug you are reporting has security implications, which make it
492inappropriate to send to a publicly archived mailing list, then please send
493it to perl5-security-report@perl.org. This points to a closed subscription
494unarchived mailing list, which includes all the core committers, who be able
495to help assess the impact of issues, figure out a resolution, and help
496co-ordinate the release of patches to mitigate or fix the problem across all
497platforms on which Perl is supported. Please only use this address for
498security issues in the Perl core, not for modules independently
499distributed on CPAN.
500
501=head1 SEE ALSO
502
503The F<Changes> file for an explanation of how to view exhaustive details
504on what changed.
505
506The F<INSTALL> file for how to build Perl.
507
508The F<README> file for general stuff.
509
510The F<Artistic> and F<Copying> files for copyright information.
511
512=cut
7ef88767 513
514
515
516
517All changes through commit b4178430270dbe109e7609d0b50d6d54bf9e95d8
518One "triage" pass done.
519
520A second triage pass is still needed to remove unimportant changes
521
7ef88767 522commit 9307c420fad2f6f5bd314f9ed66dd53288703e09
523Author: Jan Dubois <jand@activestate.com>
524Date: Thu Dec 17 18:28:16 2009 -0800
525
526 Export PL_curinterp symbol for MULTIPLICITY without USE_ITHREADS
527
528 This is necessary for XS extensions that define PERL_CORE. In that
529 situation PERL_GET_CONTEXT will resolve to PL_curinterp, which is
530 normally not exported (extensions call Perl_Gcurinterp_ptr() to get a
531 pointer to PL_curinterp instead). With USE_ITHREADS defined
532 PERL_GET_CONTEXT will expand to Perl_get_context() even inside the
533 core because the context needs to be fetched from threadlocal storage.
534
535commit 8703a9a4fd75723318bc4ba1afc42a215806f2d1
7ef88767 536
537 Correct some #ifdef USE_ITHREADS / USE_MULTI
538
7ef88767 539Author: Jan Dubois <jand@activestate.com>
540Date: Wed Dec 16 15:42:19 2009 -0800
541
542 -t should only return TRUE for file handles connected to a TTY
543
544 The Microsoft C version of isatty() returns TRUE for all
545 character mode devices, including the /dev/null style "nul"
546 device and printers like "lpt1".
547
548 The included test has only been tested on Windows and Linux;
549 the device names for OS/2 and VMS are just best guesses...
550
7ef88767 551commit 0f907b96d618c97cd2e020841a70ae037954a616
552
553 [perl #70171] 5.10.0 -> 5.10.1 Regression in fafafbaf70 (Big slowdown in 5.10 @_ parameter passing)
554
7ef88767 555commit 2ab54efd6265713df5cd4bd0927024245675c1c2
7ef88767 556
557 fix bug 67156: overload: nomethod(..., '!') return value inverted
558
559commit 412147f664b7f5805591ad996d7e5a9e70b3d80f
560
561 [perl #71204] diagnostics.pm suppresses 'Use of uninitialized value in range (or flip)' warning
562
7ef88767 563
564commit 69dc4b30f4725ad5f212d45d3c856ac1caaacf17
565Author: Father Chrysostomos <sprout@cpan.org>
566Date: Mon Dec 14 12:19:35 2009 +0100
567
568 [perl #70764] $' fails to initialized for pre-compiled regular expression matches
569
570 The match vars are associated with the regexp that last matched
571 successfully. In the case of $str =~ $qr or /$qr/, since the $qr could
572 be used in multiple scopes that need their own sets of match vars, the
573 $qr is cloned by Perl_reg_temp_copy as of change 30677/28d8d7f. This
574 happens in pp_regcomp before pp_match has stringified the LHS, hence the
575 bug. In short, /$gror/ is not equivalent to
576 ($which = !$which) ? /$gror/ : /$gror/, which is weird.
577
578Author: Reini Urban <rurban@x-ray.at>
579Date: Sun Dec 13 08:06:43 2009 +0100
580
581 Eliminate OP_SETSTATE from cop.h header
582
583 It had been added with change 3728 to track linenumbers in
584 optimized else, disabled by change 4309,
585 and removed with change 33072.
586
587 Bump copyright, latest change was "Fix MULTICALL in List-Util" 2009-03-07
588 with commit 1bbbfc50
589
7ef88767 590
591 Fix for [perl #70910] wrong line number in syntax error message
592
7ef88767 593 Document config_args limitations reported in [perl #70912]
594
7ef88767 595 proper error on "grep $x (1,2,3)". Solves [perl #37314]
596
7ef88767 597commit 8a27a13e89107aaf68c0748b68ee71fbd86d774b
7ef88767 598
599 [perl #71076] sort with active sub (5.10 regression)
600
601 One of the tests in sort.t causes a bus error (or sometimes â\80\98Undefined
602 subroutine calledâ\80\99) if run multiple times. This is because sort
603 decreases the refcount of an active sub used as a comparison routine.
604
7ef88767 605commit 69c3dccf5322a59cb855347c04712ba11b65328f
7ef88767 606
607 Fix [perl #71078] Smart match against @_ gives false negatives
608
609 @_ can contain NULLs for undefined elements
610
874e3373 611 [perl #71000] Wrong variable name in warning ; Add a new warning "Missing argument in %s"
7ef88767 612
7ef88767 613
614 preserve readonly flag when saving and restoring magic flags
615
7ef88767 616commit c9930541bfa04399c3b648e83c9b750cee1154fb
7ef88767 617
618 [perl #70802] -i'*' refuses to work
619
7ef88767 620commit adab996997d7ef1b54d382f5ab4304f438cd1dd0
7ef88767 621
622 Cleanup all scopes before exiting a pseudo-forked process.
623
624 perl_destruct() contains an assertion that the scope stack
625 is empty. The remaining scopes are due to fork() being
626 called from within a BEGIN block.
627
874e3373 628=item *
7ef88767 629
7ef88767 630
7ef88767 631
632commit 576b33a19ccaf98d4dfe201d529c55c3747f0cb6
7ef88767 633
634 [rt.cpan.org #51574] Safe.pm sort {} bug accessing $a and $b with -Dusethreads
635
7ef88767 636commit ee6ba15dedda3e88eb66891eaf387c00a4c0a2fb
7ef88767 637
638 Fix -DPERL_NO_UTF16_FILTER
639
7ef88767 640commit dfd167e94af611f6248e804cb228b35ca4123bd6
7ef88767 641
642 Handle $@ being assigned a read-only value (without error or busting the stack).
643
644 Discovered whilst investigating RT #70862.
645
646commit f5fa9033b8c1fdcbd7710850b3b0380d6b937853
7ef88767 647
648 Fix RT #70862 by converting ERRSV to GvSVn() to ensure a non-NULL GvSV().
649
650commit ff868e665bf85a829dc47bfa1243b26d4367cacd
7ef88767 651
652 Add error codes for getaddrinfo() and getnameinfo()
653
7ef88767 654commit 61fc5122f0d8a509834282b8ecb3252d2e4c9f5d
7ef88767 655
656 Make unicode semantics the default
657
658 *****************
659
7ef88767 660commit 021f53de09926928546378b3552f9240c9241dde
661Author: Gerard Goossen <gerard@ggoossen.net>
662Date: Mon Nov 16 13:58:24 2009 +0100
663
664 Force OP_REQUIRE to scalar context at the end of ck_require and don't let it become void context. Fixes problem with require not always being in scalar context.
665
666commit 6a0e50422a84b53e998825128c56791913cd03aa
667Author: Craig A. Berry <craigberry@mac.com>
668Date: Sat Nov 21 11:17:38 2009 -0600
669