summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
blob: 865191c0c22d2dc7b5bbc2044f25e88f5ae63dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
=encoding utf8

=for comment
This has been completed up to 518a985, except for:
04777d295957ad270188e4debf51b523e07cc5b0
c565ab54dc649bb62cd4d57149d7b2abb21df5f3
1c8d11ca3d0ce8bc11562f159b94c2c7e62dea6c
1830b3d9c87f8b1473b0a80759846f7a5dccae5a
I may have missed a few module version bumps.

=head1 NAME

[ this is a template for a new perldelta file. Any text flagged as
XXX needs to be processed before release. ]

perldelta - what is new for perl v5.13.7

=head1 DESCRIPTION

This document describes differences between the 5.13.6 release and
the 5.13.7 release.

If you are upgrading from an earlier release such as 5.13.5, first read
L<perl5136delta>, which describes differences between 5.13.5 and
5.13.6.

=head1 Notice

XXX Any important notices here

=head1 Core Enhancements

XXX New core language features go here. Summarise user-visible core language
enhancements. Particularly prominent performance optimisations could go
here, but most should go in the L</Performance Enhancements> section.

[ List each enhancement as a =head2 entry ]

=head2 Single term prototype

The C<+> prototype is a special alternative to C<$> that will act like
C<\[@%]> when given a literal array or hash variable, but will otherwise
force scalar context on the argument.  This is useful for functions which
should accept either a literal array or an array reference as the argument:

    sub smartpush (+@) {
        my $aref = shift;
        die "Not an array or arrayref" unless ref $aref eq 'ARRAY';
        push @$aref, @_;
    }

When using the C<+> prototype, your function must check that the argument
is of an acceptable type.

=head2 C<use re '/flags';>

The C<re> pragma now has the ability to turn on regular expression flags
till the end of the lexical scope:

    use re '/x';
    "foo" =~ / (.+) /;  # /x implied

See L<re/'/flags' mode> for details.

=head2 Statement labels can appear in more places

Statement labels can now occur before any type of statement or declaration,
such as C<package>.

=head2 C<use feature "unicode_strings"> now applies to more regex matching

Another chunk of the L<perlunicode/The "Unicode Bug"> is fixed in this
release.  Now, regular expressions compiled within the scope of the
"unicode_strings" feature (or under the "u" regex modifier (specifiable
currently only with infix notation C<(?u:...)> or via C<use re '/u'>)
will match the same whether or not the target string is encoded in utf8,
with regard to C<[[:posix:]]> character classes

Work is underway to add the case sensitive matching to the control of
this feature, but was not complete in time for this dot release.

=head2 Array and hash container functions accept references

All built-in functions that operate directly on array or hash
containers now also accept hard references to arrays or hashes:

  |----------------------------+---------------------------|
  | Traditional syntax         | Terse syntax              |
  |----------------------------+---------------------------|
  | push @$arrayref, @stuff    | push $arrayref, @stuff    |
  | unshift @$arrayref, @stuff | unshift $arrayref, @stuff |
  | pop @$arrayref             | pop $arrayref             |
  | shift @$arrayref           | shift $arrayref           |
  | splice @$arrayref, 0, 2    | splice $arrayref, 0, 2    |
  | keys %$hashref             | keys $hashref             |
  | keys @$arrayref            | keys $arrayref            |
  | values %$hashref           | values $hashref           |
  | values @$arrayref          | values $arrayref          |
  | ($k,$v) = each %$hashref   | ($k,$v) = each $hashref   |
  | ($k,$v) = each @$arrayref  | ($k,$v) = each $arrayref  |
  |----------------------------+---------------------------|

This allows these built-in functions to act on long dereferencing chains
or on the return value of subroutines without needing to wrap them in
C<@{}> or C<%{}>:

  push @{$obj->tags}, $new_tag;  # old way
  push $obj->tags,    $new_tag;  # new way

  for ( keys %{$hoh->{genres}{artists}} ) {...} # old way 
  for ( keys $hoh->{genres}{artists}    ) {...} # new way 

For C<push>, C<unshift> and C<splice>, the reference will auto-vivify
if it is not defined, just as if it were wrapped with C<@{}>.

Calling C<keys> or C<values> directly on a reference gives a substantial
performance improvement over explicit dereferencing.

For C<keys>, C<values>, C<each>, when overloaded dereferencing is
present, the overloaded dereference is used instead of dereferencing the
underlying reftype.  Warnings are issued about assumptions made in the
following three ambiguous cases:

  (a) If both %{} and @{} overloading exists, %{} is used
  (b) If %{} overloading exists on a blessed arrayref, %{} is used
  (c) If @{} overloading exists on a blessed hashref, @{} is used

=head2 y///r

The C</r> flag, which was added to C<s///> in 5.13.2, has been extended to
the C<y///> operator.

It causes it to perform the substitution on a I<copy> of its operand,
returning that copy instead of a character count.

=head2 New global variable C<${^GLOBAL_PHASE}>

A new global variable, C<${^GLOBAL_PHASE}>, has been added to allow
introspection of the current phase of the perl interpreter. It's explained in
detail in L<perlvar/"${^GLOBAL_PHASE}"> and
L<perlmod/"BEGIN, UNITCHECK, CHECK, INIT and END">.

=head1 Security

XXX Any security-related notices go here.  In particular, any security
vulnerabilities closed should be noted here rather than in the
L</Selected Bug Fixes> section.

[ List each security issue as a =head2 entry ]

=head1 Incompatible Changes

XXX For a release on a stable branch, this section aspires to be:

    There are no changes intentionally incompatible with 5.XXX.XXX. If any
    exist, they are bugs and reports are welcome.

[ List each incompatible change as a =head2 entry ]

=head2 Dereferencing typeglobs

If you assign a typeglob to a scalar variable:

    $glob = *foo;

the glob that is copied to C<$glob> is marked with a special flag
indicating that the glob is just a copy. This allows subsequent assignments
to C<$glob> to overwrite the glob. The original glob, however, is
immutable.

Many Perl operators did not distinguish between these two types of globs.
This would result in strange behaviour in edge cases: C<untie $scalar>
would do nothing if the last thing assigned to the scalar was a glob
(because it treated it as C<untie *$scalar>, which unties a handle).
Assignment to a glob slot (e.g., C<(*$glob) = \@some_array>) would simply
assign C<\@some_array> to C<$glob>.

To fix this, the C<*{}> operator (including the C<*foo> and C<*$foo> forms)
has been modified to make a new immutable glob if its operand is a glob
copy. Various operators that make a distinction between globs and scalars
have been modified to treat only immutable globs as globs.

This causes an incompatible change in code that assigns a glob to the
return value of C<*{}> when that operator was passed a glob copy. Take the
following code, for instance:

    $glob = *foo;
    *$glob = *bar;

The C<*$glob> on the second line returns a new immutable glob. That new
glob is made an alias to C<*bar>. Then it is discarded. So the second
assignment has no effect.

The upside to this incompatible change is that bugs
L<[perl #77496]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77496>,
L<[perl #77502]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77502>,
L<[perl #77508]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77508>,
L<[perl #77688]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77688>,
and
L<[perl #77812]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77812>,
and maybe others, too, have been fixed.

See L<http://rt.perl.org/rt3/Public/Bug/Display.html?id=77810> for even
more detail.

=head1 Deprecations

XXX Any deprecated features, syntax, modules etc. should be listed here.
In particular, deprecated modules should be listed here even if they are
listed as an updated module in the L</Modules and Pragmata> section.

[ List each deprecation as a =head2 entry ]

=head1 Performance Enhancements

XXX Changes which enhance performance without changing behaviour go here. There
may well be none in a stable release.

[ List each enhancement as a =item entry ]

=over 4

=item *

When an object has many weak references to it, freeing that object
can under some some circumstances take O(N^2) time to free (where N is the
number of references). The number of circumstances has been reduced.
L<[perl #75254]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75254>.

=back

=head1 Modules and Pragmata

XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
go here.  If Module::CoreList is updated, generate an initial draft of the
following sections using F<Porting/corelist-perldelta.pl>, which prints stub
entries to STDOUT.  Results can be pasted in place of the '=head2' entries
below.  A paragraph summary for important changes should then be added by hand.
In an ideal world, dual-life modules would have a F<Changes> file that could be
cribbed.

[ Within each section, list entries as a =item entry ]

=head2 New Modules and Pragmata

=over 4

=item *

The following modules were added by the C<Unicode::Collate> 
upgrade from 0.63 to 0.67. See below for details.

C<Unicode::Collate::CJK::Big5>

C<Unicode::Collate::CJK::GB2312>

C<Unicode::Collate::CJK::JISX0208>

C<Unicode::Collate::CJK::Korean>

C<Unicode::Collate::CJK::Pinyin>

C<Unicode::Collate::CJK::Stroke>

=back

=head2 Updated Modules and Pragmata

=over 4

=item *

C<Archive::Extract> has been upgraded from 0.44 to 0.46

Resolves an issue with NetBSD-current and its new unzip 
executable.

=item *

C<Archive::Tar> has been upgraded from 1.68 to 1.70

This adds the ptargrep utility for using regular expressions against 
the contents of files in a tar archive.

=item *

C<B> has been upgraded from 1.24 to 1.26.

It no longer crashes when taking apart a C<y///> containing characters
outside the octet range or compiled in a C<use utf8> scope.

=item *

C<B::Deparse> has been upgraded from 0.99 to 1.01.

It fixes deparsing of C<our> followed by a variable with funny characters
(as permitted under the C<utf8> pragma)
L<[perl #33752]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=33752>.

=item *

C<CGI> has been upgraded from 3.49 to 3.50

This provides the following security fixes: the MIME boundary in 
multipart_init is now random and improvements to the handling of 
newlines embedded in header values.

The documentation for param_fetch() has been corrected and clarified.

=item *

C<CPAN> has been upgraded from 1.94_61 to 1.94_62

=item *

C<CPANPLUS> has been upgraded from 0.9007 to 0.9010

Fixes for the SQLite source engine and resolving of issues with the
testsuite when run under local::lib and/or cpanminus

=item *

C<CPANPLUS::Dist::Build> has been upgraded from 0.48 to 0.50

=item *

C<Data::Dumper> has been upgraded from 2.129 to 2.130.

=item *

C<DynaLoader> has been upgraded from 1.10 to 1.11.

It fixes a buffer overflow when passed a very long file name.

=item *

C<ExtUtils::Constant> has been upgraded from 0.22 to 0.23.

=item *

C<Fcntl> has been upgraded from 1.09 to 1.10.

=item *

C<File::Fetch> has been upgraded from 0.24 to 0.28

C<HTTP::Lite> is now supported for 'http' scheme.

The C<fetch> utility is supported on FreeBSD, NetBSD and
Dragonfly BSD for the C<http> and C<ftp> schemes.

=item *

C<File::Glob> has been upgraded from 1.09 to 1.10.

=item *

C<File::stat> has been upgraded from 1.03 to 1.04.

The C<-x> and C<-X> file test operators now work correctly under the root
user.

=item *

C<GDBM_File> has been upgraded from 1.11 to 1.12.

This fixes a memory leak when DBM filters are used.

=item *

C<Hash::Util> has been upgraded from 0.09 to 0.10.

=item *

C<Hash::Util::FieldHash> has been upgraded from 1.05 to 1.06.

=item *

C<I18N::Langinfo> has been upgraded from 0.06 to 0.07.

=item *

C<Locale::Maketext> has been upgraded from 1.16 to 1.17.

=item *

C<Math::BigInt> has been upgraded from 1.97 to 1.99.

=item *

C<Math::BigInt::FastCalc> has been upgraded from 0.22 to 0.24.

=item *

C<MIME::Base64> has been upgraded from 3.09 to 3.10

Includes new functions to calculate the length of encoded and decoded
base64 strings.

=item *

C<mro> has been upgraded from 1.04 to 1.05.

=item *

C<NDBM_File> has been upgraded from 1.09 to 1.10.

This fixes a memory leak when DBM filters are used.

=item *

C<ODBM_File> has been upgraded from 1.08 to 1.09.

This fixes a memory leak when DBM filters are used.

=item *

C<Opcode> has been upgraded from 1.16 to 1.17.

=item *

C<parent> has been upgraded from 0.223 to 0.224

=item *

C<Pod::Simple> has been upgraded from 3.14 to 3.15

Includes various fixes to C<HTML> and C<XHTML> handling.

=item *

C<POSIX> has been upgraded from 1.21 to 1.22.

=item *

C<re> has been upgraded from 0.13 to 0.14, for the sake of the new
C<use re "/flags"> pragma.

=item *

C<Safe> has been upgraded from 2.28 to 2.29.

It adds C<&version::vxs::VCMP> to the default share.

=item *

C<SDBM_File> has been upgraded from 1.07 to 1.08.

=item *

C<SelfLoader> has been upgraded from 1.17 to 1.18.

It now works in taint mode
L<[perl #72062]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=72062>.

=item *

C<Socket> has been upgraded from 1.90 to 1.91.

=item *

C<Storable> has been upgraded from 2.22 to 2.24

Includes performance improvement for overloaded classes.

=item *

C<Sys::Hostname> has been upgraded from 1.13 to 1.14.

=item *

C<Unicode::Collate> has been upgraded from 0.63 to 0.67

This release newly adds locales C<ja> C<ko> and C<zh> and its variants 
( C<zh__big5han>, C<zh__gb2312han>, C<zh__pinyin>, C<zh__stroke> ).

Supported UCA_Version 22 for Unicode 6.0.0.

The following modules have been added:

C<Unicode::Collate::CJK::Big5> for C<zh__big5han> which makes 
tailoring of CJK Unified Ideographs in the order of CLDR's big5han ordering.

C<Unicode::Collate::CJK::GB2312> for C<zh__gb2312han> which makes
tailoring of CJK Unified Ideographs in the order of CLDR's gb2312han ordering.

C<Unicode::Collate::CJK::JISX0208> which makes tailoring of 6355 kanji 
(CJK Unified Ideographs) in the JIS X 0208 order.

C<Unicode::Collate::CJK::Korean> which makes tailoring of CJK Unified Ideographs 
in the order of CLDR's Korean ordering.

C<Unicode::Collate::CJK::Pinyin> for C<zh__pinyin> which makes
tailoring of CJK Unified Ideographs in the order of CLDR's pinyin ordering.

C<Unicode::Collate::CJK::Stroke> for C<zh__stroke> which makes
tailoring of CJK Unified Ideographs in the order of CLDR's stroke ordering.

=back

=head2 Removed Modules and Pragmata

=over 4

=item *

XXX

=back

=head1 Documentation

XXX Changes to files in F<pod/> go here.  Consider grouping entries by
file and be sure to link to the appropriate page, e.g. L<perlfunc>.

L<perlvar> reorders the variables and groups them by topic. Each variable
introduced after Perl 5.000 notes the first version in which it is 
available. L<perlvar> also has a new section for deprecated variables to
note when they were removed.

=head2 New Documentation

XXX Changes which create B<new> files in F<pod/> go here.

=head3 L<XXX>

XXX Description of the purpose of the new file here

=head2 Changes to Existing Documentation

XXX Changes which significantly change existing files in F<pod/> go here.
However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
section.

=over

=item *

Array and hash slices in scalar context are now documented in L<perldata>.

=item *

L<perlform> and L<perllocale> have been corrected to state that
C<use locale> affects formats.

=back

=head3 L<XXX>

=over 4

=item *

XXX Description of the change here

=back

=head1 Diagnostics

The following additions or changes have been made to diagnostic output,
including warnings and fatal error messages.  For the complete list of
diagnostic messages, see L<perldiag>.

XXX New or changed warnings emitted by the core's C<C> code go here. Also
include any changes in L<perldiag> that reconcile it to the C<C> code.

[ Within each section, list entries as a =item entry ]

=head2 New Diagnostics

XXX Newly added diagnostic messages go here

=over 4

=item *

"Using !~ with %s doesn't make sense": This message was actually added in
5.13.2, but was omitted from perldelta. It now applies also to the C<y///>
operator, and has been documented.

=back

=head2 Changes to Existing Diagnostics

XXX Changes (i.e. rewording) of diagnostic messages go here

=over 4

=item *

XXX

=back

=head1 Utility Changes

XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
here. Most of these are built within the directories F<utils> and F<x2p>.

[ List utility changes as a =head3 entry for each utility and =item
entries for each change
Use L<XXX> with program names to get proper documentation linking. ]

=head3 L<ptargrep>

=over 4

=item *

L<ptargrep> is a utility to apply pattern matching to the contents of files 
in a tar archive. It comes with C<Archive::Tar>.

=back

=head1 Configuration and Compilation

XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
go here.  Any other changes to the Perl build process should be listed here.
However, any platform-specific changes should be listed in the
L</Platform Support> section, instead.

[ List changes as a =item entry ].

=over 4

=item *

XXX

=back

=head1 Testing

XXX Any significant changes to the testing of a freshly built perl should be
listed here.  Changes which create B<new> files in F<t/> go here as do any
large changes to the testing harness (e.g. when parallel testing was added).
Changes to existing files in F<t/> aren't worth summarising, although the bugs
that they represent may be covered elsewhere.

[ List each test improvement as a =item entry ]

=over 4

=item *

F<t/mro/isarev.t> has been added, which tests that C<PL_isarev> (accessible
at the Perl level via C<mro::get_isarev>) is updated properly.

=item

F<t/run/switchd-78586.t> has been added, which tests that
L<[perl #78586]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78586>
has been fixed (related to line numbers in the debbuger).

=back

=head1 Platform Support

XXX Any changes to platform support should be listed in the sections below.

[ Within the sections, list each platform as a =item entry with specific
changes as paragraphs below it. ]

=head2 New Platforms

XXX List any platforms that this version of perl compiles on, that previous
versions did not. These will either be enabled by new files in the F<hints/>
directories, or new subdirectories and F<README> files at the top level of the
source tree.

=over 4

=item XXX-some-platform

XXX

=back

=head2 Discontinued Platforms

XXX List any platforms that this version of perl no longer compiles on.

=over 4

=item XXX-some-platform

XXX

=back

=head2 Platform-Specific Notes

XXX List any changes for specific platforms. This could include configuration
and compilation changes or changes in portability/compatibility.  However,
changes within modules for platforms should generally be listed in the
L</Modules and Pragmata> section.

=over 4

=item Windows

Directory handles are now properly cloned when threads are created. In perl
5.13.6, child threads simply stopped inheriting directory handles. In
previous versions, threads would share handles, resulting in crashes.

=back

=head1 Internal Changes

XXX Changes which affect the interface available to C<XS> code go here.
Other significant internal changes for future core maintainers should
be noted as well.

[ List each test improvement as a =item entry ]

=over 4

=item *

C<lex_start> has been added to the API, but is considered experimental.

=item *

A new C<parse_block> function has been added to the API
L<[perl #78222]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78222>.

=item *

A new, experimental API has been added for accessing the internal
structure that Perl uses for C<%^H>. See the functions beginning with
C<cophh_> in L<perlapi>.

=item *

A stash can now have a list of effective names in addition to its usual
name. The first effective name can be accessed via the C<HvENAME> macro,
which is now the recommended name to use in MRO linearisations (C<HvNAME>
being a fallback if there is no C<HvENAME>).

These names are added and deleted via C<hv_ename_add> and
C<hv_ename_delete>. These two functions are I<not> part of the API.

=item *

The way the parser handles labels has been cleaned up and refactored. As a
result, the C<newFOROP()> constructor function no longer takes a parameter
stating what label is to go in the state op.

=item *

The C<newWHILEOP()> and C<newFOROP()> functions no longer accept a line
number as a parameter.

=item *

A new C<parse_barestmt()> function has been added, for parsing a statement
without a label.

=item *

A new C<parse_label()> function has been added, that parses a statement
label, separate from statements.

=item *

The C<CvSTASH()> macro can now only be used as an rvalue. C<CvSTASH_set()>
has been added to replace assignment to C<CvSTASH()>. This is to ensure
that backreferences are handled properly. These macros are not part of the
API.

=item *

The C<op_scope()> and C<op_lvalue()> functions have been added to the API,
but are considered experimental.

=back

=head1 Selected Bug Fixes

XXX Important bug fixes in the core language are summarised here.
Bug fixes in files in F<ext/> and F<lib/> are best summarised in
L</Modules and Pragmata>.

[ List each fix as a =item entry ]

=over 4

=item *

The C<parse_stmt> C function added in earlier in the 5.13.x series has been
fixed to work with statements ending with C<}>
L<[perl #78222]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78222>.

=item *

The C<parse_fullstmt> C function added in 5.13.5 has been fixed to work
when called while an expression is being parsed.

=item *

Characters in the Latin-1 non-ASCII range (0x80 to 0xFF) used not to match
themselves if the string happened to be UTF8-encoded internally, the
regular expression was not, and the character in the regular expression was
inside a repeated group (e.g.,
C<Encode::decode_utf8("\303\200") =~ /(\xc0)+/>)
L<[perl #78464]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78464>.

=item *

The C<(?d)> regular expression construct now overrides a previous C<(?u)>
or C<use feature "unicode_string">
L<[perl #78508]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78508>.

=item *

A memory leak in C<do "file">, introduced in perl 5.13.6, has been fixed
L<[perl #78488]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78488>.

=item *

Various bugs related to typeglob dereferencing have been fixed. See
L</Dereferencing typeglobs>, above.

=item *

The C<SvPVbyte> function available to XS modules now calls magic before
downgrading the SV, to avoid warnings about wide characters
L<[perl #72398]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=72398>.

=item *

The C<=> operator used to ignore magic (e.g., tie methods) on its
right-hand side if the scalar happened to hold a typeglob. This could
happen if a typeglob was the last thing returned from or assigned to a tied
scalar
L<[perl #77498]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77498>.

=item *

C<sprintf> was ignoring locales when called with constant arguments
L<[perl #78632]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78632>.

=item *

A non-ASCII character in the Latin-1 range could match both a Posix
class, such as C<[[:alnum:]]>, and its inverse C<[[:^alnum:]]>.  This is
now fixed for regular expressions compiled under the C<"u"> modifier.
See L</C<use feature "unicode_strings"> now applies to more regex matching>.
L<[perl #18281]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=18281>.

=item *

Concatenating long strings under C<use encoding> no longer causes perl to
crash
L<[perl #78674]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78674>.

=item *

Typeglob assignments would crash if the glob's stash no longer existed, so
long as the glob assigned to was named 'ISA' or the glob on either side of
the assignment contained a subroutine.

=item *

Calling C<< ->import >> on a class lacking an import method could corrupt the stack result in strange behaviour. For instance,

  push @a, "foo", $b = bar->import;

would assign 'foo' to C<$b>
L<[perl #63790]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=63790>.

=item *

Creating an alias to a package when that package had been detached from the
symbol table would result in corrupted isa caches
L<[perl #77358]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77358>.

=item *

C<.=> followed by C<< <> >> or C<readline> would leak memory if C<$/>
contained characters beyond the octet range and the scalar assigned to
happened to be encoded as UTF8 internally
L<[perl #72246]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=72246>.

=item *

The C<recv> function could crash when called with the MSG_TRUNC flag
L<[perl #75082]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75082>.

=item *

Evaluating a simple glob (like C<*a>) was calling get-magic on the glob,
even when its contents were not being used
L<[perl #78580]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78580>.

This bug was introduced in 5.13.2 and did not affect earlier perl versions.

=item *

Matching a Unicode character against an alternation containing characters
that happened to match continuation bytes in the former's UTF8
representation (C<qq{\x{30ab}} =~ /\xab|\xa9/>) would cause erroneous
warnings
L<[perl #70998]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=70998>.

=item *

C<s///r> (added in 5.13.2) no longer leaks.

=item *

The trie optimisation was not taking empty groups into account, preventing
'foo' from matching C</\A(?:(?:)foo|bar|zot)\z/>
L<[perl #78356]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78356>.

=item *

A pattern containing a C<+> inside a lookahead would sometimes cause an
incorrect match failure in a global match (e.g., C</(?=(\S+))/g>)
L<[perl #68564]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=68564>.

=item *

Iterating with C<foreach> over an array returned by an lvalue sub now works
L<[perl #23790]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=23790>.

=item *

C<$@> is now localised during calls to C<binmode> to prevent action at a
distance
L<[perl #78844]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78844>.

=item *

C<PL_isarev>, which is accessible to Perl via C<mro::get_isarev> is now
updated properly when packages are deleted or removed from the C<@ISA> of
other classes. This allows many packages to be created and deleted without
causing a memory leak
L<[perl #75176]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75176>.

=item *

C<undef *Foo::> and C<undef *Foo::ISA> and C<delete $package::{ISA}>
used not to update the internal isa caches if the
stash or C<@ISA> array had a reference elsewhere. In
fact, C<undef *Foo::ISA> would stop a new C<@Foo::ISA> array from updating
caches
L<[perl #79024]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=79024>.

=item *

C<@ISA> arrays can now be shared between classes via
C<*Foo::ISA = \@Bar::ISA> or C<*Foo::ISA = *Bar::ISA>
L<[perl #77238]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77238>.

=item *

The parser no longer hangs when encountering certain Unicode characters,
such as U+387
L<[perl #74022]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=74022>.

=item *

C<formline> no longer crashes when passed a tainted format picture. It also
taints C<$^A> now if its arguments are tainted
L<[perl #79138]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=79138>.

=item *

A signal handler called within a signal handler could cause leaks or
double-frees. Now fixed.
L<[perl #76248]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=76248>.

=back

=head1 Known Problems

XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
tests that had to be C<TODO>ed for the release would be noted here, unless
they were specific to a particular platform (see below).

This is a list of some significant unfixed bugs, which are regressions
from either 5.XXX.XXX or 5.XXX.XXX.

[ List each fix as a =item entry ]

=over 4

=item *

XXX

=back

=head1 Obituary

XXX If any significant core contributor has died, we've added a short obituary
here.

Randy Kobes, creator of the kobesearch alternative to search.cpan.org and
contributor/maintainer to several core Perl toolchain modules, passed away
on September 18, 2010 after a battle with lung cancer.  His contributions
to the Perl community will be missed.

=head1 Acknowledgements

XXX The list of people to thank goes here.

=head1 Reporting Bugs

If you find what you think is a bug, you might check the articles
recently posted to the comp.lang.perl.misc newsgroup and the perl
bug database at http://rt.perl.org/perlbug/ .  There may also be
information at http://www.perl.org/ , the Perl Home Page.

If you believe you have an unreported bug, please run the B<perlbug>
program included with your release.  Be sure to trim your bug down
to a tiny but sufficient test case.  Your bug report, along with the
output of C<perl -V>, will be sent off to perlbug@perl.org to be
analysed by the Perl porting team.

If the bug you are reporting has security implications, which make it
inappropriate to send to a publicly archived mailing list, then please send
it to perl5-security-report@perl.org. This points to a closed subscription
unarchived mailing list, which includes all the core committers, who be able
to help assess the impact of issues, figure out a resolution, and help
co-ordinate the release of patches to mitigate or fix the problem across all
platforms on which Perl is supported. Please only use this address for
security issues in the Perl core, not for modules independently
distributed on CPAN.

=head1 SEE ALSO

The F<Changes> file for an explanation of how to view exhaustive details
on what changed.

The F<INSTALL> file for how to build Perl.

The F<README> file for general stuff.

The F<Artistic> and F<Copying> files for copyright information.

=cut