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