File: perl581delta.html

package info (click to toggle)
perl-doc-html 5.26.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 39,400 kB
  • sloc: xml: 36; makefile: 7
file content (1301 lines) | stat: -rw-r--r-- 75,586 bytes parent folder | download
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
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>perl581delta - perldoc.perl.org</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta http-equiv="Content-Language" content="en-gb">
  <link rel="search" type="application/opensearchdescription+xml" title="Search perldoc.perl.org" href="/static/search.xml"/>
  <link href="static/css-20100830.css" rel="stylesheet" rev="stylesheet" type="text/css" media="screen">
  <link href="static/exploreperl.css" rel="stylesheet" rev="stylesheet" type="text/css">
</head>

<body onLoad="perldoc.startup();" onPageShow="if (event.persisted) perldoc.startup();">
    <div id="page">
      
      <div id="header">
	<div id="homepage_link">
	  <a href="index.html"></a>
	</div>
	<div id="strapline">
	  Perl Programming Documentation
	</div>
	<div id="download_link" class="download">
	  <a href="http://www.perl.org/get.html">Download Perl</a>
	</div>
	<div id="explore_link" class="download">
	  <a id="explore_anchor" href="#">Explore</a>
	</div>
      </div>
      
      <div id="body">
        <div id="left_column">
          <div class="side_group">
            
	    <div class="side_panel doc_panel">
              <p>Manual</p>
              <ul>
                <li><a href="index-overview.html">Overview</a>
                <li><a href="index-tutorials.html">Tutorials</a>
                <li><a href="index-faq.html">FAQs</a>
                <li><a href="index-history.html">History / Changes</a>
                <li><a href="index-licence.html">License</a>
              </ul>
            </div>
            <div class="side_panel doc_panel">
              <p>Reference</p>
              <ul>
                <li><a href="index-language.html">Language</a>
                <li><a href="index-functions.html">Functions</a>
                <li><a href="perlop.html">Operators</a>
                <li><a href="perlvar.html">Special Variables</a>
                <li><a href="index-pragmas.html">Pragmas</a>
                <li><a href="index-utilities.html">Utilities</a>
                <li><a href="index-internals.html">Internals</a>
                <li><a href="index-platforms.html">Platform Specific</a>
              </ul>
            </div>
            <div class="side_panel doc_panel">
              <p>Modules</p>
              <ul>
		<li>
		
                
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		
                  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		
                  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		    
		  
		
                  
		
                  
		
                  
		    
		  
		
                  
		
                  
		
		
                    <a href="index-modules-A.html">A</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-B.html">B</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-C.html">C</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-D.html">D</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-E.html">E</a>
                    
                      
                        <li>
                      
                    
                
                    <a href="index-modules-F.html">F</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-G.html">G</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-H.html">H</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-I.html">I</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-L.html">L</a>
                    
                      
                        <li>
                      
                    
                
                    <a href="index-modules-M.html">M</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-N.html">N</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-O.html">O</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-P.html">P</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-S.html">S</a>
                    
                      
                        <li>
                      
                    
                
                    <a href="index-modules-T.html">T</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-U.html">U</a>
                    
                      
                        &bull;
                      
                    
                
                    <a href="index-modules-X.html">X</a>
                    
                
              </ul>
            </div>
            
	      <div class="side_panel doc_panel">
		<p>Tools</p>
		<ul>
		  <li><a href="preferences.html">Preferences</a>
		</ul>
	      </div>
            
          </div>
        </div>
        <div id="centre_column">
          <div id="content_header">
            <div id="title_bar">
              <div id="page_name">
                <h1>perl581delta</h1>
              </div>
              <div id="perl_version">
                Perl 5 version 26.0 documentation
              </div>
              <div class="page_links" id="page_links_top">
                <a href="#" onClick="toolbar.goToTop();return false;">Go to top</a>
		
              </div>
	      <div class="page_links" id="page_links_bottom">
		
                  <a href="#" id="page_index_toggle">Show page index</a> &bull;
		
                <a href="#" id="recent_pages_toggle">Show recent pages</a>		
	      </div>
	      <div id="search_form">
		<form action="search.html" method="GET" id="search">
		  <input type="text" name="q" id="search_box" alt="Search">
		</form>
	      </div>
            </div>
            <div id="breadcrumbs">
                
    <a href="index.html">Home</a> &gt;
    
      
        <a href="index-history.html">History / Changes</a> &gt;
      
    
    perl581delta
  

            </div>
          </div>
          <div id="content_body">
	    <!--[if lt IE 7]>
 <div class="noscript">
   <p>
     <strong>It looks like you're using Internet Explorer 6. This is a very old
     browser which does not offer full support for modern websites.</strong>
   </p>
   <p>
     Unfortunately this means that this website will not work on
     your computer.
   </p>
   <p>
     Don't miss out though! To view the site (and get a better experience from
     many other websites), simply upgrade to
     <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx">Internet
Explorer 8</a>
     or download an alternative browser such as
     <a href="http://www.mozilla.com/en-US/firefox/firefox.html">Firefox</a>,
     <a href="http://www.apple.com/safari/download/">Safari</a>, or
     <a href="http://www.google.co.uk/chrome">Google Chrome</a>.
   </p>
   <p>
     All of these browsers are free. If you're using a PC at work, you may
     need to contact your IT administrator.
   </p>
 </div>
<![endif]-->
	    <noscript>
	      <div class="noscript">
	      <p>
                <strong>Please note: Many features of this site require JavaScript. You appear to have JavaScript disabled,
	        or are running a non-JavaScript capable web browser.</strong>
	      </p>
	      <p>
		To get the best experience, please enable JavaScript or download a modern web browser such as <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx">Internet Explorer 8</a>, <a href="http://www.mozilla.com/en-US/firefox/firefox.html">Firefox</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, or <a href="http://www.google.co.uk/chrome">Google Chrome</a>.
              </p>
	      </div>
	    </noscript>

	    <div id="recent_pages" class="hud_container">
	      <div id="recent_pages_header" class="hud_header">
		<div id="recent_pages_close" class="hud_close"><a href="#" onClick="recentPages.hide();return false;"></a></div>
		<div id="recent_pages_title" class="hud_title"><span class="hud_span_top">Recently read</span></div>
		<div id="recent_pages_topright" class="hud_topright"></div>
	      </div>
	      <div id="recent_pages_content" class="hud_content">
	      </div>
	      <div id="recent_pages_footer" class="hud_footer">
		<div id="recent_pages_bottomleft" class="hud_bottomleft"></div>
		<div id="recent_pages_bottom" class="hud_bottom"><span class="hud_span_bottom"></span></div>
		<div id="recent_pages_resize" class="hud_resize"></div>
	      </div>
	    </div>
  
	    <div id="from_search"></div>
            <h1>perl581delta</h1>


  <!--    -->
<ul><li><a href="#NAME">NAME</a><li><a href="#DESCRIPTION">DESCRIPTION</a><li><a href="#Incompatible-Changes">Incompatible Changes</a><ul><li><a href="#Hash-Randomisation">Hash Randomisation</a><li><a href="#UTF-8-On-Filehandles-No-Longer-Activated-By-Locale">UTF-8 On Filehandles No Longer Activated By Locale</a><li><a href="#Single-number-v-strings-are-no-longer-v-strings-before-%22%3d%3e%22">Single-number v-strings are no longer v-strings before "=>"</a><li><a href="#(Win32)-The--C-Switch-Has-Been-Repurposed">(Win32) The -C Switch Has Been Repurposed</a><li><a href="#(Win32)-The-%2fd-Switch-Of-cmd.exe">(Win32) The /d Switch Of cmd.exe</a></ul><li><a href="#Core-Enhancements">Core Enhancements</a><ul><li><a href="#UTF-8-no-longer-default-under-UTF-8-locales">UTF-8 no longer default under UTF-8 locales</a><li><a href="#Unsafe-signals-again-available">Unsafe signals again available</a><li><a href="#Tied-Arrays-with-Negative-Array-Indices">Tied Arrays with Negative Array Indices</a><li><a href="#local-%24%7b%24x%7d">local ${$x}</a><li><a href="#Unicode-Character-Database-4.0.0">Unicode Character Database 4.0.0</a><li><a href="#Deprecation-Warnings">Deprecation Warnings</a><li><a href="#Miscellaneous-Enhancements">Miscellaneous Enhancements</a></ul><li><a href="#Modules-and-Pragmata">Modules and Pragmata</a><ul><li><a href="#Updated-Modules-And-Pragmata">Updated Modules And Pragmata</a></ul><li><a href="#Utility-Changes">Utility Changes</a><li><a href="#New-Documentation">New Documentation</a><li><a href="#Installation-and-Configuration-Improvements">Installation and Configuration Improvements</a><ul><li><a href="#Platform-specific-enhancements">Platform-specific enhancements</a></ul><li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a><ul><li><a href="#Closures%2c-eval-and-lexicals">Closures, eval and lexicals</a><li><a href="#Generic-fixes">Generic fixes</a><li><a href="#Platform-specific-fixes">Platform-specific fixes</a></ul><li><a href="#New-or-Changed-Diagnostics">New or Changed Diagnostics</a><ul><li><a href="#Changed-%22A-thread-exited-while-%25d-threads-were-running%22">Changed "A thread exited while %d threads were running"</a><li><a href="#Removed-%22Attempt-to-clear-a-restricted-hash%22">Removed "Attempt to clear a restricted hash"</a><li><a href="#New-%22Illegal-declaration-of-anonymous-subroutine%22">New "Illegal declaration of anonymous subroutine"</a><li><a href="#Changed-%22Invalid-range-%22%25s%22-in-transliteration-operator%22">Changed "Invalid range "%s" in transliteration operator"</a><li><a href="#New-%22Missing-control-char-name-in-%5cc%22">New "Missing control char name in \c"</a><li><a href="#New-%22Newline-in-left-justified-string-for-%25s%22">New "Newline in left-justified string for %s"</a><li><a href="#New-%22Possible-precedence-problem-on-bitwise-%25c-operator%22">New "Possible precedence problem on bitwise %c operator"</a><li><a href="#New-%22Pseudo-hashes-are-deprecated%22">New "Pseudo-hashes are deprecated"</a><li><a href="#New-%22read()-on-%25s-filehandle-%25s%22">New "read() on %s filehandle %s"</a><li><a href="#New-%225.005-threads-are-deprecated%22">New "5.005 threads are deprecated"</a><li><a href="#New-%22Tied-variable-freed-while-still-in-use%22">New "Tied variable freed while still in use"</a><li><a href="#New-%22To%25s%3a-illegal-mapping-'%25s'%22">New "To%s: illegal mapping '%s'"</a><li><a href="#New-%22Use-of-freed-value-in-iteration%22">New "Use of freed value in iteration"</a></ul><li><a href="#Changed-Internals">Changed Internals</a><li><a href="#New-Tests">New Tests</a><li><a href="#Known-Problems">Known Problems</a><ul><li><a href="#Tied-hashes-in-scalar-context">Tied hashes in scalar context</a><li><a href="#Net%3a%3aPing-450_service-and-510_ping_udp-failures">Net::Ping 450_service and 510_ping_udp failures</a><li><a href="#B%3a%3aC">B::C</a></ul><li><a href="#Platform-Specific-Problems">Platform Specific Problems</a><ul><li><a href="#EBCDIC-Platforms">EBCDIC Platforms</a><li><a href="#Cygwin-1.5-problems">Cygwin 1.5 problems</a><li><a href="#HP-UX%3a-HP-cc-warnings-about-sendfile-and-sendpath">HP-UX: HP cc warnings about sendfile and sendpath</a><li><a href="#IRIX%3a-t%2funi%2ftr_7jis.t-falsely-failing">IRIX: t/uni/tr_7jis.t falsely failing</a><li><a href="#Mac-OS-X%3a-no-usemymalloc">Mac OS X: no usemymalloc</a><li><a href="#Tru64%3a-No-threaded-builds-with-GNU-cc-(gcc)">Tru64: No threaded builds with GNU cc (gcc)</a><li><a href="#Win32%3a-sysopen%2c-sysread%2c-syswrite">Win32: sysopen, sysread, syswrite</a></ul><li><a href="#Future-Directions">Future Directions</a><li><a href="#Reporting-Bugs">Reporting Bugs</a><li><a href="#SEE-ALSO">SEE ALSO</a></ul><a name="NAME"></a><h1>NAME</h1>
<p>perl581delta - what is new for perl v5.8.1</p>
<a name="DESCRIPTION"></a><h1>DESCRIPTION</h1>
<p>This document describes differences between the 5.8.0 release and
the 5.8.1 release.</p>
<p>If you are upgrading from an earlier release such as 5.6.1, first read
the <a href="perl58delta.html">perl58delta</a>, which describes differences between 5.6.0 and
5.8.0.</p>
<p>In case you are wondering about 5.6.1, it was bug-fix-wise rather
identical to the development release 5.7.1.  Confused?  This timeline
hopefully helps a bit: it lists the new major releases, their maintenance
releases, and the development releases.</p>
<pre class="verbatim"><ol><li>          New     Maintenance  Development</li><li></li><li>          5.6.0                             2000-Mar-22</li><li>                               5.7.0        2000-Sep-02</li><li>                  5.6.1                     2001-Apr-08</li><li>                               5.7.1        2001-Apr-09</li><li>                               5.7.2        2001-Jul-13</li><li>                               5.7.3        2002-Mar-05</li><li>          5.8.0                             2002-Jul-18</li><li>                  5.8.1                     2003-Sep-25</li></ol></pre><a name="Incompatible-Changes"></a><h1>Incompatible Changes</h1>
<a name="Hash-Randomisation"></a><h2>Hash Randomisation</h2>
<p>Mainly due to security reasons, the "random ordering" of hashes
has been made even more random.  Previously while the order of hash
elements from keys(), values(), and each() was essentially random,
it was still repeatable.  Now, however, the order varies between
different runs of Perl.</p>
<p><b>Perl has never guaranteed any ordering of the hash keys</b>, and the
ordering has already changed several times during the lifetime of
Perl 5.  Also, the ordering of hash keys has always been, and
continues to be, affected by the insertion order.</p>
<p>The added randomness may affect applications.</p>
<p>One possible scenario is when output of an application has included
hash data.  For example, if you have used the Data::Dumper module to
dump data into different files, and then compared the files to see
whether the data has changed, now you will have false positives since
the order in which hashes are dumped will vary.  In general the cure
is to sort the keys (or the values); in particular for Data::Dumper to
use the <code class="inline"><span class="w">Sortkeys</span></code>
 option.  If some particular order is really
important, use tied hashes: for example the Tie::IxHash module
which by default preserves the order in which the hash elements
were added.</p>
<p>More subtle problem is reliance on the order of "global destruction".
That is what happens at the end of execution: Perl destroys all data
structures, including user data.  If your destructors (the DESTROY
subroutines) have assumed any particular ordering to the global
destruction, there might be problems ahead.  For example, in a
destructor of one object you cannot assume that objects of any other
class are still available, unless you hold a reference to them.
If the environment variable PERL_DESTRUCT_LEVEL is set to a non-zero
value, or if Perl is exiting a spawned thread, it will also destruct
the ordinary references and the symbol tables that are no longer in use.
You can't call a class method or an ordinary function on a class that
has been collected that way.</p>
<p>The hash randomisation is certain to reveal hidden assumptions about
some particular ordering of hash elements, and outright bugs: it
revealed a few bugs in the Perl core and core modules.</p>
<p>To disable the hash randomisation in runtime, set the environment
variable PERL_HASH_SEED to 0 (zero) before running Perl (for more
information see <a href="perlrun.html#PERL_HASH_SEED">PERL_HASH_SEED in perlrun</a>), or to disable the feature
completely in compile time, compile with <code class="inline">-<span class="w">DNO_HASH_SEED</span></code>
 (see <i>INSTALL</i>).</p>
<p>See <a href="perlsec.html#Algorithmic-Complexity-Attacks">Algorithmic Complexity Attacks in perlsec</a> for the original
rationale behind this change.</p>
<a name="UTF-8-On-Filehandles-No-Longer-Activated-By-Locale"></a><h2>UTF-8 On Filehandles No Longer Activated By Locale</h2>
<p>In Perl 5.8.0 all filehandles, including the standard filehandles,
were implicitly set to be in Unicode UTF-8 if the locale settings
indicated the use of UTF-8.  This feature caused too many problems,
so the feature was turned off and redesigned: see <a href="#Core-Enhancements">Core Enhancements</a>.</p>
<a name="Single-number-v-strings-are-no-longer-v-strings-before-%22%3d%3e%22"></a><h2>Single-number v-strings are no longer v-strings before "=&gt;"</h2>
<p>The version strings or v-strings (see <a href="perldata.html#Version-Strings">Version Strings in perldata</a>)
feature introduced in Perl 5.6.0 has been a source of some confusion--
especially when the user did not want to use it, but Perl thought it
knew better.  Especially troublesome has been the feature that before
a "=&gt;" a version string (a "v" followed by digits) has been interpreted
as a v-string instead of a string literal.  In other words:</p>
<pre class="verbatim"><ol><li>	<span class="i">%h</span> = <span class="s">(</span> <span class="v">v65</span> <span class="cm">=&gt;</span> <span class="n">42</span> <span class="s">)</span><span class="sc">;</span></li></ol></pre><p>has meant since Perl 5.6.0</p>
<pre class="verbatim"><ol><li>	<span class="i">%h</span> = <span class="s">(</span> <span class="q">&#39;A&#39;</span> <span class="cm">=&gt;</span> <span class="n">42</span> <span class="s">)</span><span class="sc">;</span></li></ol></pre><p>(at least in platforms of ASCII progeny)  Perl 5.8.1 restores the
more natural interpretation</p>
<pre class="verbatim"><ol><li>	<span class="i">%h</span> = <span class="s">(</span> <span class="q">&#39;v65&#39;</span> <span class="cm">=&gt;</span> <span class="n">42</span> <span class="s">)</span><span class="sc">;</span></li></ol></pre><p>The multi-number v-strings like v65.66 and 65.66.67 still continue to
be v-strings in Perl 5.8.</p>
<a name="(Win32)-The--C-Switch-Has-Been-Repurposed"></a><h2>(Win32) The -C Switch Has Been Repurposed</h2>
<p>The -C switch has changed in an incompatible way.  The old semantics
of this switch only made sense in Win32 and only in the "use utf8"
universe in 5.6.x releases, and do not make sense for the Unicode
implementation in 5.8.0.  Since this switch could not have been used
by anyone, it has been repurposed.  The behavior that this switch
enabled in 5.6.x releases may be supported in a transparent,
data-dependent fashion in a future release.</p>
<p>For the new life of this switch, see <a href="#UTF-8-no-longer-default-under-UTF-8-locales">UTF-8 no longer default under UTF-8 locales</a>, and <a href="perlrun.html#-C">-C in perlrun</a>.</p>
<a name="(Win32)-The-%2fd-Switch-Of-cmd.exe"></a><h2>(Win32) The /d Switch Of cmd.exe</h2>
<p>Perl 5.8.1 uses the /d switch when running the cmd.exe shell
internally for system(), backticks, and when opening pipes to external
programs.  The extra switch disables the execution of AutoRun commands
from the registry, which is generally considered undesirable when
running external programs.  If you wish to retain compatibility with
the older behavior, set PERL5SHELL in your environment to <code class="inline"><span class="w">cmd</span> <span class="q">/x/c</span></code>
.</p>
<a name="Core-Enhancements"></a><h1>Core Enhancements</h1>
<a name="UTF-8-no-longer-default-under-UTF-8-locales"></a><h2>UTF-8 no longer default under UTF-8 locales</h2>
<p>In Perl 5.8.0 many Unicode features were introduced.   One of them
was found to be of more nuisance than benefit: the automagic
(and silent) "UTF-8-ification" of filehandles, including the
standard filehandles, if the user's locale settings indicated
use of UTF-8.</p>
<p>For example, if you had <code class="inline"><span class="w">en_US</span>.<span class="w">UTF</span>-<span class="n">8</span></code>
 as your locale, your STDIN and
STDOUT were automatically "UTF-8", in other words an implicit
binmode(..., ":utf8") was made.  This meant that trying to print, say,
chr(0xff), ended up printing the bytes 0xc3 0xbf.  Hardly what
you had in mind unless you were aware of this feature of Perl 5.8.0.
The problem is that the vast majority of people weren't: for example
in RedHat releases 8 and 9 the <b>default</b> locale setting is UTF-8, so
all RedHat users got UTF-8 filehandles, whether they wanted it or not.
The pain was intensified by the Unicode implementation of Perl 5.8.0
(still) having nasty bugs, especially related to the use of s/// and
tr///.  (Bugs that have been fixed in 5.8.1)</p>
<p>Therefore a decision was made to backtrack the feature and change it
from implicit silent default to explicit conscious option.  The new
Perl command line option <code class="inline">-C</code>
 and its counterpart environment
variable PERL_UNICODE can now be used to control how Perl and Unicode
interact at interfaces like I/O and for example the command line
arguments.  See <a href="perlrun.html#-C">-C in perlrun</a> and <a href="perlrun.html#PERL_UNICODE">PERL_UNICODE in perlrun</a> for more
information.</p>
<a name="Unsafe-signals-again-available"></a><h2>Unsafe signals again available</h2>
<p>In Perl 5.8.0 the so-called "safe signals" were introduced.  This
means that Perl no longer handles signals immediately but instead
"between opcodes", when it is safe to do so.  The earlier immediate
handling easily could corrupt the internal state of Perl, resulting
in mysterious crashes.</p>
<p>However, the new safer model has its problems too.  Because now an
opcode, a basic unit of Perl execution, is never interrupted but
instead let to run to completion, certain operations that can take a
long time now really do take a long time.  For example, certain
network operations have their own blocking and timeout mechanisms, and
being able to interrupt them immediately would be nice.</p>
<p>Therefore perl 5.8.1 introduces a "backdoor" to restore the pre-5.8.0
(pre-5.7.3, really) signal behaviour.  Just set the environment variable
PERL_SIGNALS to <code class="inline"><span class="w">unsafe</span></code>
, and the old immediate (and unsafe)
signal handling behaviour returns.  See <a href="perlrun.html#PERL_SIGNALS">PERL_SIGNALS in perlrun</a>
and <a href="perlipc.html#Deferred-Signals-(Safe-Signals)">Deferred Signals (Safe Signals) in perlipc</a>.</p>
<p>In completely unrelated news, you can now use safe signals with
POSIX::SigAction.  See <a href="POSIX.html#POSIX%3a%3aSigAction">POSIX::SigAction in POSIX</a>.</p>
<a name="Tied-Arrays-with-Negative-Array-Indices"></a><h2>Tied Arrays with Negative Array Indices</h2>
<p>Formerly, the indices passed to <code class="inline"><span class="w">FETCH</span></code>
, <code class="inline"><span class="w">STORE</span></code>
, <code class="inline"><span class="w">EXISTS</span></code>
, and
<code class="inline"><span class="w">DELETE</span></code>
 methods in tied array class were always non-negative.  If
the actual argument was negative, Perl would call FETCHSIZE implicitly
and add the result to the index before passing the result to the tied
array method.  This behaviour is now optional.  If the tied array class
contains a package variable named <code class="inline"><span class="i">$NEGATIVE_INDICES</span></code>
 which is set to
a true value, negative values will be passed to <code class="inline"><span class="w">FETCH</span></code>
, <code class="inline"><span class="w">STORE</span></code>
,
<code class="inline"><span class="w">EXISTS</span></code>
, and <code class="inline"><span class="w">DELETE</span></code>
 unchanged.</p>
<a name="local-%24%7b%24x%7d"></a><h2>local ${$x}</h2>
<p>The syntaxes</p>
<pre class="verbatim"><ol><li>	<a class="l_k" href="functions/local.html">local</a> <span class="i">$</span>{<span class="i">$x</span>}</li><li>	<a class="l_k" href="functions/local.html">local</a> <span class="i">@</span>{<span class="i">$x</span>}</li><li>	<a class="l_k" href="functions/local.html">local</a> <span class="i">%</span>{<span class="i">$x</span>}</li></ol></pre><p>now do localise variables, given that the $x is a valid variable name.</p>
<a name="Unicode-Character-Database-4.0.0"></a><h2>Unicode Character Database 4.0.0</h2>
<p>The copy of the Unicode Character Database included in Perl 5.8 has
been updated to 4.0.0 from 3.2.0.  This means for example that the
Unicode character properties are as in Unicode 4.0.0.</p>
<a name="Deprecation-Warnings"></a><h2>Deprecation Warnings</h2>
<p>There is one new feature deprecation.  Perl 5.8.0 forgot to add
some deprecation warnings, these warnings have now been added.
Finally, a reminder of an impending feature removal.</p>
<a name="(Reminder)-Pseudo-hashes-are-deprecated-(really)"></a><h3>(Reminder) Pseudo-hashes are deprecated (really)</h3>
<p>Pseudo-hashes were deprecated in Perl 5.8.0 and will be removed in
Perl 5.10.0, see <a href="perl58delta.html">perl58delta</a> for details.  Each attempt to access
pseudo-hashes will trigger the warning <code class="inline"><span class="w">Pseudo</span>-<span class="w">hashes</span> <span class="w">are</span> <span class="w">deprecated</span></code>
.
If you really want to continue using pseudo-hashes but not to see the
deprecation warnings, use:</p>
<pre class="verbatim"><ol><li>    <a class="l_k" href="functions/no.html">no</a> <span class="w">warnings</span> <span class="q">&#39;deprecated&#39;</span><span class="sc">;</span></li></ol></pre><p>Or you can continue to use the <a href="fields.html">fields</a> pragma, but please don't
expect the data structures to be pseudohashes any more.</p>
<a name="(Reminder)-5.005-style-threads-are-deprecated-(really)"></a><h3>(Reminder) 5.005-style threads are deprecated (really)</h3>
<p>5.005-style threads (activated by <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">Thread</span><span class="sc">;</span></code>
) were deprecated in
Perl 5.8.0 and will be removed after Perl 5.8, see <a href="perl58delta.html">perl58delta</a> for
details.  Each 5.005-style thread creation will trigger the warning
<code class="inline">5.005 threads are deprecated</code>.  If you really want to continue
using the 5.005 threads but not to see the deprecation warnings, use:</p>
<pre class="verbatim"><ol><li>    <a class="l_k" href="functions/no.html">no</a> <span class="w">warnings</span> <span class="q">&#39;deprecated&#39;</span><span class="sc">;</span></li></ol></pre><a name="(Reminder)-The-%24*-variable-is-deprecated-(really)"></a><h3>(Reminder) The $* variable is deprecated (really)</h3>
<p>The <code class="inline"><span class="i">$*</span></code>
 variable controlling multi-line matching has been deprecated
and will be removed after 5.8.  The variable has been deprecated for a
long time, and a deprecation warning <code class="inline"><span class="w">Use</span> <span class="w">of</span> <span class="i">$*</span> <span class="w">is</span> <span class="w">deprecated</span></code>
 is given,
now the variable will just finally be removed.  The functionality has
been supplanted by the <code class="inline">/s</code> and <code class="inline">/m</code> modifiers on pattern matching.
If you really want to continue using the <code class="inline"><span class="i">$*</span></code>
-variable but not to see
the deprecation warnings, use:</p>
<pre class="verbatim"><ol><li>    <a class="l_k" href="functions/no.html">no</a> <span class="w">warnings</span> <span class="q">&#39;deprecated&#39;</span><span class="sc">;</span></li></ol></pre><a name="Miscellaneous-Enhancements"></a><h2>Miscellaneous Enhancements</h2>
<p><code class="inline"><a class="l_k" href="functions/map.html">map</a></code> in void context is no longer expensive. <code class="inline"><a class="l_k" href="functions/map.html">map</a></code> is now context
aware, and will not construct a list if called in void context.</p>
<p>If a socket gets closed by the server while printing to it, the client
now gets a SIGPIPE.  While this new feature was not planned, it fell
naturally out of PerlIO changes, and is to be considered an accidental
feature.</p>
<p>PerlIO::get_layers(FH) returns the names of the PerlIO layers
active on a filehandle.</p>
<p>PerlIO::via layers can now have an optional UTF8 method to
indicate whether the layer wants to "auto-:utf8" the stream.</p>
<p>utf8::is_utf8() has been added as a quick way to test whether
a scalar is encoded internally in UTF-8 (Unicode).</p>
<a name="Modules-and-Pragmata"></a><h1>Modules and Pragmata</h1>
<a name="Updated-Modules-And-Pragmata"></a><h2>Updated Modules And Pragmata</h2>
<p>The following modules and pragmata have been updated since Perl 5.8.0:</p>
<ul>
<li><a name="base"></a><b>base</b>
</li>
<li><a name="B%3a%3aBytecode"></a><b>B::Bytecode</b>
<p>In much better shape than it used to be.  Still far from perfect, but
maybe worth a try.</p>
</li>
<li><a name="B%3a%3aConcise"></a><b>B::Concise</b>
</li>
<li><a name="B%3a%3aDeparse"></a><b>B::Deparse</b>
</li>
<li><a name="Benchmark"></a><b>Benchmark</b>
<p>An optional feature, <code class="inline"><span class="j">:</span><span class="w">hireswallclock</span></code>
, now allows for high
resolution wall clock times (uses Time::HiRes).</p>
</li>
<li><a name="ByteLoader"></a><b>ByteLoader</b>
<p>See B::Bytecode.</p>
</li>
<li><a name="bytes"></a><b>bytes</b>
<p>Now has bytes::substr.</p>
</li>
<li><a name="CGI"></a><b>CGI</b>
</li>
<li><a name="charnames"></a><b>charnames</b>
<p>One can now have custom character name aliases.</p>
</li>
<li><a name="CPAN"></a><b>CPAN</b>
<p>There is now a simple command line frontend to the CPAN.pm
module called <i>cpan</i>.</p>
</li>
<li><a name="Data%3a%3aDumper"></a><b>Data::Dumper</b>
<p>A new option, Pair, allows choosing the separator between hash keys
and values.</p>
</li>
<li><a name="DB_File"></a><b>DB_File</b>
</li>
<li><a name="Devel%3a%3aPPPort"></a><b>Devel::PPPort</b>
</li>
<li><a name="Digest%3a%3aMD5"></a><b>Digest::MD5</b>
</li>
<li><a name="Encode"></a><b>Encode</b>
<p>Significant updates on the encoding pragma functionality
(tr/// and the DATA filehandle, formats).</p>
<p>If a filehandle has been marked as to have an encoding, unmappable
characters are detected already during input, not later (when the
corrupted data is being used).</p>
<p>The ISO 8859-6 conversion table has been corrected (the 0x30..0x39
erroneously mapped to U+0660..U+0669, instead of U+0030..U+0039).  The
GSM 03.38 conversion did not handle escape sequences correctly.  The
UTF-7 encoding has been added (making Encode feature-complete with
Unicode::String).</p>
</li>
<li><a name="fields"></a><b>fields</b>
</li>
<li><a name="libnet"></a><b>libnet</b>
</li>
<li><a name="Math%3a%3aBigInt"></a><b>Math::BigInt</b>
<p>A lot of bugs have been fixed since v1.60, the version included in Perl
v5.8.0. Especially noteworthy are the bug in Calc that caused div and mod to
fail for some large values, and the fixes to the handling of bad inputs.</p>
<p>Some new features were added, e.g. the broot() method, you can now pass
parameters to config() to change some settings at runtime, and it is now
possible to trap the creation of NaN and infinity.</p>
<p>As usual, some optimizations took place and made the math overall a tad
faster. In some cases, quite a lot faster, actually. Especially alternative
libraries like Math::BigInt::GMP benefit from this. In addition, a lot of the
quite clunky routines like fsqrt() and flog() are now much much faster.</p>
</li>
<li><a name="MIME%3a%3aBase64"></a><b>MIME::Base64</b>
</li>
<li><a name="NEXT"></a><b>NEXT</b>
<p>Diamond inheritance now works.</p>
</li>
<li><a name="Net%3a%3aPing"></a><b>Net::Ping</b>
</li>
<li><a name="PerlIO%3a%3ascalar"></a><b>PerlIO::scalar</b>
<p>Reading from non-string scalars (like the special variables, see
<a href="perlvar.html">perlvar</a>) now works.</p>
</li>
<li><a name="podlators"></a><b>podlators</b>
</li>
<li><a name="Pod%3a%3aLaTeX"></a><b>Pod::LaTeX</b>
</li>
<li><a name="PodParsers"></a><b>PodParsers</b>
</li>
<li><a name="Pod%3a%3aPerldoc"></a><b>Pod::Perldoc</b>
<p>Complete rewrite.  As a side-effect, no longer refuses to startup when
run by root.</p>
</li>
<li><a name="Scalar%3a%3aUtil"></a><b>Scalar::Util</b>
<p>New utilities: refaddr, isvstring, looks_like_number, set_prototype.</p>
</li>
<li><a name="Storable"></a><b>Storable</b>
<p>Can now store code references (via B::Deparse, so not foolproof).</p>
</li>
<li><a name="strict"></a><b>strict</b>
<p>Earlier versions of the strict pragma did not check the parameters
implicitly passed to its "import" (use) and "unimport" (no) routine.
This caused the false idiom such as:</p>
<pre class="verbatim"><ol><li>        <a class="l_k" href="functions/use.html">use</a> <span class="w">strict</span> <span class="q">qw(@ISA)</span><span class="sc">;</span></li><li>        <span class="i">@ISA</span> = <span class="q">qw(Foo)</span><span class="sc">;</span></li></ol></pre><p>This however (probably) raised the false expectation that the strict
refs, vars and subs were being enforced (and that @ISA was somehow
"declared").  But the strict refs, vars, and subs are <b>not</b> enforced
when using this false idiom.</p>
<p>Starting from Perl 5.8.1, the above <b>will</b> cause an error to be
raised.  This may cause programs which used to execute seemingly
correctly without warnings and errors to fail when run under 5.8.1.
This happens because</p>
<pre class="verbatim"><ol><li>        <a class="l_k" href="functions/use.html">use</a> <span class="w">strict</span> <span class="q">qw(@ISA)</span><span class="sc">;</span></li></ol></pre><p>will now fail with the error:</p>
<pre class="verbatim"><ol><li>        Unknown 'strict' tag(s) '@ISA'</li></ol></pre><p>The remedy to this problem is to replace this code with the correct idiom:</p>
<pre class="verbatim"><ol><li>        <a class="l_k" href="functions/use.html">use</a> <span class="w">strict</span><span class="sc">;</span></li><li>        <a class="l_k" href="functions/use.html">use</a> <span class="w">vars</span> <span class="q">qw(@ISA)</span><span class="sc">;</span></li><li>        <span class="i">@ISA</span> = <span class="q">qw(Foo)</span><span class="sc">;</span></li></ol></pre></li>
<li><a name="Term%3a%3aANSIcolor"></a><b>Term::ANSIcolor</b>
</li>
<li><a name="Test%3a%3aHarness"></a><b>Test::Harness</b>
<p>Now much more picky about extra or missing output from test scripts.</p>
</li>
<li><a name="Test%3a%3aMore"></a><b>Test::More</b>
</li>
<li><a name="Test%3a%3aSimple"></a><b>Test::Simple</b>
</li>
<li><a name="Text%3a%3aBalanced"></a><b>Text::Balanced</b>
</li>
<li><a name="Time%3a%3aHiRes"></a><b>Time::HiRes</b>
<p>Use of nanosleep(), if available, allows mixing subsecond sleeps with
alarms.</p>
</li>
<li><a name="threads"></a><b>threads</b>
<p>Several fixes, for example for join() problems and memory
leaks.  In some platforms (like Linux) that use glibc the minimum memory
footprint of one ithread has been reduced by several hundred kilobytes.</p>
</li>
<li><a name="threads%3a%3ashared"></a><b>threads::shared</b>
<p>Many memory leaks have been fixed.</p>
</li>
<li><a name="Unicode%3a%3aCollate"></a><b>Unicode::Collate</b>
</li>
<li><a name="Unicode%3a%3aNormalize"></a><b>Unicode::Normalize</b>
</li>
<li><a name="Win32%3a%3aGetFolderPath"></a><b>Win32::GetFolderPath</b>
</li>
<li><a name="Win32%3a%3aGetOSVersion"></a><b>Win32::GetOSVersion</b>
<p>Now returns extra information.</p>
</li>
</ul>
<a name="Utility-Changes"></a><h1>Utility Changes</h1>
<p>The <code class="inline"><span class="w">h2xs</span></code>
 utility now produces a more modern layout:
<i>Foo-Bar/lib/Foo/Bar.pm</i> instead of <i>Foo/Bar/Bar.pm</i>.
Also, the boilerplate test is now called <i>t/Foo-Bar.t</i>
instead of <i>t/1.t</i>.</p>
<p>The Perl debugger (<i>lib/perl5db.pl</i>) has now been extensively
documented and bugs found while documenting have been fixed.</p>
<p><code class="inline"><span class="w">perldoc</span></code>
 has been rewritten from scratch to be more robust and
feature rich.</p>
<p><code class="inline"><span class="w">perlcc</span> -B</code>
 works now at least somewhat better, while <code class="inline"><span class="w">perlcc</span> -c</code>

is rather more broken.  (The Perl compiler suite as a whole continues
to be experimental.)</p>
<a name="New-Documentation"></a><h1>New Documentation</h1>
<p>perl573delta has been added to list the differences between the
(now quite obsolete) development releases 5.7.2 and 5.7.3.</p>
<p>perl58delta has been added: it is the perldelta of 5.8.0, detailing
the differences between 5.6.0 and 5.8.0.</p>
<p>perlartistic has been added: it is the Artistic License in pod format,
making it easier for modules to refer to it.</p>
<p>perlcheat has been added: it is a Perl cheat sheet.</p>
<p>perlgpl has been added: it is the GNU General Public License in pod
format, making it easier for modules to refer to it.</p>
<p>perlmacosx has been added to tell about the installation and use
of Perl in Mac OS X.</p>
<p>perlos400 has been added to tell about the installation and use
of Perl in OS/400 PASE.</p>
<p>perlreref has been added: it is a regular expressions quick reference.</p>
<a name="Installation-and-Configuration-Improvements"></a><h1>Installation and Configuration Improvements</h1>
<p>The Unix standard Perl location, <i>/usr/bin/perl</i>, is no longer
overwritten by default if it exists.  This change was very prudent
because so many Unix vendors already provide a <i>/usr/bin/perl</i>,
but simultaneously many system utilities may depend on that
exact version of Perl, so better not to overwrite it.</p>
<p>One can now specify installation directories for site and vendor man
and HTML pages, and site and vendor scripts.  See <i>INSTALL</i>.</p>
<p>One can now specify a destination directory for Perl installation
by specifying the DESTDIR variable for <code class="inline"><span class="w">make</span> <span class="w">install</span></code>
.  (This feature
is slightly different from the previous <code class="inline"><span class="w">Configure</span> -<span class="w">Dinstallprefix</span>=...</code>
.)
See <i>INSTALL</i>.</p>
<p>gcc versions 3.x introduced a new warning that caused a lot of noise
during Perl compilation: <code class="inline">gcc -Ialreadyknowndirectory (warning:
changing search order)</code>.  This warning has now been avoided by
Configure weeding out such directories before the compilation.</p>
<p>One can now build subsets of Perl core modules by using the
Configure flags <code class="inline">-<span class="w">Dnoextensions</span>=...</code>
 and <code class="inline">-<span class="w">Donlyextensions</span>=...</code>
,
see <i>INSTALL</i>.</p>
<a name="Platform-specific-enhancements"></a><h2>Platform-specific enhancements</h2>
<p>In Cygwin Perl can now be built with threads (<code class="inline"><span class="w">Configure</span> -<span class="w">Duseithreads</span></code>
).
This works with both Cygwin 1.3.22 and Cygwin 1.5.3.</p>
<p>In newer FreeBSD releases Perl 5.8.0 compilation failed because of
trying to use <i>malloc.h</i>, which in FreeBSD is just a dummy file, and
a fatal error to even try to use.  Now <i>malloc.h</i> is not used.</p>
<p>Perl is now known to build also in Hitachi HI-UXMPP.</p>
<p>Perl is now known to build again in LynxOS.</p>
<p>Mac OS X now installs with Perl version number embedded in
installation directory names for easier upgrading of user-compiled
Perl, and the installation directories in general are more standard.
In other words, the default installation no longer breaks the
Apple-provided Perl.  On the other hand, with <code class="inline">Configure -Dprefix=/usr</code>
you can now really replace the Apple-supplied Perl (<b>please be careful</b>).</p>
<p>Mac OS X now builds Perl statically by default.  This change was done
mainly for faster startup times.  The Apple-provided Perl is still
dynamically linked and shared, and you can enable the sharedness for
your own Perl builds by <code class="inline"><span class="w">Configure</span> -<span class="w">Duseshrplib</span></code>
.</p>
<p>Perl has been ported to IBM's OS/400 PASE environment.  The best way
to build a Perl for PASE is to use an AIX host as a cross-compilation
environment.  See README.os400.</p>
<p>Yet another cross-compilation option has been added: now Perl builds
on OpenZaurus, an Linux distribution based on Mandrake + Embedix for
the Sharp Zaurus PDA.  See the Cross/README file.</p>
<p>Tru64 when using gcc 3 drops the optimisation for <i>toke.c</i> to <code class="inline">-<span class="w">O2</span></code>

because of gigantic memory use with the default <code class="inline">-<span class="w">O3</span></code>
.</p>
<p>Tru64 can now build Perl with the newer Berkeley DBs.</p>
<p>Building Perl on WinCE has been much enhanced, see <i>README.ce</i>
and <i>README.perlce</i>.</p>
<a name="Selected-Bug-Fixes"></a><h1>Selected Bug Fixes</h1>
<a name="Closures%2c-eval-and-lexicals"></a><h2>Closures, eval and lexicals</h2>
<p>There have been many fixes in the area of anonymous subs, lexicals and
closures.  Although this means that Perl is now more "correct", it is
possible that some existing code will break that happens to rely on
the faulty behaviour.  In practice this is unlikely unless your code
contains a very complex nesting of anonymous subs, evals and lexicals.</p>
<a name="Generic-fixes"></a><h2>Generic fixes</h2>
<p>If an input filehandle is marked <code class="inline"><span class="j">:</span><span class="w">utf8</span></code>
 and Perl sees illegal UTF-8
coming in when doing <code class="inline"><span class="q">&lt;FH&gt;</span></code>
, if warnings are enabled a warning is
immediately given - instead of being silent about it and Perl being
unhappy about the broken data later.  (The <code class="inline"><span class="j">:</span><span class="i">encoding</span><span class="s">(</span><span class="w">utf8</span><span class="s">)</span></code>
 layer
also works the same way.)</p>
<p>binmode(SOCKET, ":utf8") only worked on the input side, not on the
output side of the socket.  Now it works both ways.</p>
<p>For threaded Perls certain system database functions like getpwent()
and getgrent() now grow their result buffer dynamically, instead of
failing.  This means that at sites with lots of users and groups the
functions no longer fail by returning only partial results.</p>
<p>Perl 5.8.0 had accidentally broken the capability for users
to define their own uppercase&lt;-&gt;lowercase Unicode mappings
(as advertised by the Camel).  This feature has been fixed and
is also documented better.</p>
<p>In 5.8.0 this</p>
<pre class="verbatim"><ol><li>	<span class="i">$some_unicode</span> .= <span class="q">&lt;FH&gt;</span><span class="sc">;</span></li></ol></pre><p>didn't work correctly but instead corrupted the data.  This has now
been fixed.</p>
<p>Tied methods like FETCH etc. may now safely access tied values, i.e.
resulting in a recursive call to FETCH etc.  Remember to break the
recursion, though.</p>
<p>At startup Perl blocks the SIGFPE signal away since there isn't much
Perl can do about it.  Previously this blocking was in effect also for
programs executed from within Perl.  Now Perl restores the original
SIGFPE handling routine, whatever it was, before running external
programs.</p>
<p>Linenumbers in Perl scripts may now be greater than 65536, or 2**16.
(Perl scripts have always been able to be larger than that, it's just
that the linenumber for reported errors and warnings have "wrapped
around".)  While scripts that large usually indicate a need to rethink
your code a bit, such Perl scripts do exist, for example as results
from generated code.  Now linenumbers can go all the way to
4294967296, or 2**32.</p>
<a name="Platform-specific-fixes"></a><h2>Platform-specific fixes</h2>
<p>Linux</p>
<ul>
<li>
<p>Setting $0 works again (with certain limitations that
Perl cannot do much about: see <a href="perlvar.html#%240">$0 in perlvar</a>)</p>
</li>
</ul>
<p>HP-UX</p>
<ul>
<li>
<p>Setting $0 now works.</p>
</li>
</ul>
<p>VMS</p>
<ul>
<li>
<p>Configuration now tests for the presence of <code class="inline"><span class="i">poll</span><span class="s">(</span><span class="s">)</span></code>
, and IO::Poll
now uses the vendor-supplied function if detected.</p>
</li>
<li>
<p>A rare access violation at Perl start-up could occur if the Perl image was
installed with privileges or if there was an identifier with the
subsystem attribute set in the process's rightslist.  Either of these
circumstances triggered tainting code that contained a pointer bug. 
The faulty pointer arithmetic has been fixed.</p>
</li>
<li>
<p>The length limit on values (not keys) in the %ENV hash has been raised
from 255 bytes to 32640 bytes (except when the PERL_ENV_TABLES setting
overrides the default use of logical names for %ENV).  If it is
necessary to access these long values from outside Perl, be aware that
they are implemented using search list logical names that store the
value in pieces, each 255-byte piece (up to 128 of them) being an
element in the search list. When doing a lookup in %ENV from within
Perl, the elements are combined into a single value.  The existing
VMS-specific ability to access individual elements of a search list
logical name via the $ENV{'foo;N'} syntax (where N is the search list
index) is unimpaired.</p>
</li>
<li>
<p>The piping implementation now uses local rather than global DCL
symbols for inter-process communication.</p>
</li>
<li>
<p>File::Find could become confused when navigating to a relative
directory whose name collided with a logical name.  This problem has
been corrected by adding directory syntax to relative path names, thus
preventing logical name translation.</p>
</li>
</ul>
<p>Win32</p>
<ul>
<li>
<p>A memory leak in the fork() emulation has been fixed.</p>
</li>
<li>
<p>The return value of the ioctl() built-in function was accidentally
broken in 5.8.0.  This has been corrected.</p>
</li>
<li>
<p>The internal message loop executed by perl during blocking operations
sometimes interfered with messages that were external to Perl.
This often resulted in blocking operations terminating prematurely or
returning incorrect results, when Perl was executing under environments
that could generate Windows messages.  This has been corrected.</p>
</li>
<li>
<p>Pipes and sockets are now automatically in binary mode.</p>
</li>
<li>
<p>The four-argument form of select() did not preserve $! (errno) properly
when there were errors in the underlying call.  This is now fixed.</p>
</li>
<li>
<p>The "CR CR LF" problem of has been fixed, binmode(FH, ":crlf")
is now effectively a no-op.</p>
</li>
</ul>
<a name="New-or-Changed-Diagnostics"></a><h1>New or Changed Diagnostics</h1>
<p>All the warnings related to pack() and unpack() were made more
informative and consistent.</p>
<a name="Changed-%22A-thread-exited-while-%25d-threads-were-running%22"></a><h2>Changed "A thread exited while %d threads were running"</h2>
<p>The old version</p>
<pre class="verbatim"><ol><li>    A thread exited while %d other threads were still running</li></ol></pre><p>was misleading because the "other" included also the thread giving
the warning.</p>
<a name="Removed-%22Attempt-to-clear-a-restricted-hash%22"></a><h2>Removed "Attempt to clear a restricted hash"</h2>
<p>It is not illegal to clear a restricted hash, so the warning
was removed.</p>
<a name="New-%22Illegal-declaration-of-anonymous-subroutine%22"></a><h2>New "Illegal declaration of anonymous subroutine"</h2>
<p>You must specify the block of code for <code class="inline"><a class="l_k" href="functions/sub.html">sub</a></code>.</p>
<a name="Changed-%22Invalid-range-%22%25s%22-in-transliteration-operator%22"></a><h2>Changed "Invalid range "%s" in transliteration operator"</h2>
<p>The old version</p>
<pre class="verbatim"><ol><li>    Invalid [] range "%s" in transliteration operator</li></ol></pre><p>was simply wrong because there are no "[] ranges" in tr///.</p>
<a name="New-%22Missing-control-char-name-in-%5cc%22"></a><h2>New "Missing control char name in \c"</h2>
<p>Self-explanatory.</p>
<a name="New-%22Newline-in-left-justified-string-for-%25s%22"></a><h2>New "Newline in left-justified string for %s"</h2>
<p>The padding spaces would appear after the newline, which is
probably not what you had in mind.</p>
<a name="New-%22Possible-precedence-problem-on-bitwise-%25c-operator%22"></a><h2>New "Possible precedence problem on bitwise %c operator"</h2>
<p>If you think this</p>
<pre class="verbatim"><ol><li>    <span class="i">$x</span> &amp; <span class="i">$y</span> == <span class="n">0</span></li></ol></pre><p>tests whether the bitwise AND of $x and $y is zero,
you will like this warning.</p>
<a name="New-%22Pseudo-hashes-are-deprecated%22"></a><h2>New "Pseudo-hashes are deprecated"</h2>
<p>This warning should have been already in 5.8.0, since they are.</p>
<a name="New-%22read()-on-%25s-filehandle-%25s%22"></a><h2>New "read() on %s filehandle %s"</h2>
<p>You cannot read() (or sysread()) from a closed or unopened filehandle.</p>
<a name="New-%225.005-threads-are-deprecated%22"></a><h2>New "5.005 threads are deprecated"</h2>
<p>This warning should have been already in 5.8.0, since they are.</p>
<a name="New-%22Tied-variable-freed-while-still-in-use%22"></a><h2>New "Tied variable freed while still in use"</h2>
<p>Something pulled the plug on a live tied variable, Perl plays
safe by bailing out.</p>
<a name="New-%22To%25s%3a-illegal-mapping-'%25s'%22"></a><h2>New "To%s: illegal mapping '%s'"</h2>
<p>An illegal user-defined Unicode casemapping was specified.</p>
<a name="New-%22Use-of-freed-value-in-iteration%22"></a><h2>New "Use of freed value in iteration"</h2>
<p>Something modified the values being iterated over.  This is not good.</p>
<a name="Changed-Internals"></a><h1>Changed Internals</h1>
<p>These news matter to you only if you either write XS code or like to
know about or hack Perl internals (using Devel::Peek or any of the
<code class="inline"><span class="w">B::</span></code>
 modules counts), or like to run Perl with the <code class="inline">-<span class="w">D</span></code>
 option.</p>
<p>The embedding examples of <a href="perlembed.html">perlembed</a> have been reviewed to be
up to date and consistent: for example, the correct use of
PERL_SYS_INIT3() and PERL_SYS_TERM().</p>
<p>Extensive reworking of the pad code (the code responsible
for lexical variables) has been conducted by Dave Mitchell.</p>
<p>Extensive work on the v-strings by John Peacock.</p>
<p>UTF-8 length and position cache: to speed up the handling of Unicode
(UTF-8) scalars, a cache was introduced.  Potential problems exist if
an extension bypasses the official APIs and directly modifies the PV
of an SV: the UTF-8 cache does not get cleared as it should.</p>
<p>APIs obsoleted in Perl 5.8.0, like sv_2pv, sv_catpvn, sv_catsv,
sv_setsv, are again available.</p>
<p>Certain Perl core C APIs like cxinc and regatom are no longer
available at all to code outside the Perl core of the Perl core
extensions.  This is intentional.  They never should have been
available with the shorter names, and if you application depends on
them, you should (be ashamed and) contact perl5-porters to discuss
what are the proper APIs.</p>
<p>Certain Perl core C APIs like <code class="inline"><span class="w">Perl_list</span></code>
 are no longer available
without their <code class="inline"><span class="w">Perl_</span></code>
 prefix.  If your XS module stops working
because some functions cannot be found, in many cases a simple fix is
to add the <code class="inline"><span class="w">Perl_</span></code>
 prefix to the function and the thread context
<code class="inline"><span class="w">aTHX_</span></code>
 as the first argument of the function call.  This is also how
it should always have been done: letting the Perl_-less forms to leak
from the core was an accident.  For cleaner embedding you can also
force this for all APIs by defining at compile time the cpp define
PERL_NO_SHORT_NAMES.</p>
<p>Perl_save_bool() has been added.</p>
<p>Regexp objects (those created with <code class="inline"><a class="l_k" href="functions/qr.html">qr</a></code>) now have S-magic rather than
R-magic.  This fixed regexps of the form /...(??{...;$x})/ to no
longer ignore changes made to $x.  The S-magic avoids dropping
the caching optimization and making (??{...}) constructs obscenely
slow (and consequently useless).  See also <a href="perlguts.html#Magic-Variables">Magic Variables in perlguts</a>.
Regexp::Copy was affected by this change.</p>
<p>The Perl internal debugging macros DEBUG() and DEB() have been renamed
to PERL_DEBUG() and PERL_DEB() to avoid namespace conflicts.</p>
<p><code class="inline">-<span class="w">DL</span></code>
 removed (the leaktest had been broken and unsupported for years,
use alternative debugging mallocs or tools like valgrind and Purify).</p>
<p>Verbose modifier <code class="inline"><span class="w">v</span></code>
 added for <code class="inline">-<span class="w">DXv</span></code>
 and <code class="inline">-<span class="w">Dsv</span></code>
, see <a href="perlrun.html">perlrun</a>.</p>
<a name="New-Tests"></a><h1>New Tests</h1>
<p>In Perl 5.8.0 there were about 69000 separate tests in about 700 test files,
in Perl 5.8.1 there are about 77000 separate tests in about 780 test files.
The exact numbers depend on the Perl configuration and on the operating
system platform.</p>
<a name="Known-Problems"></a><h1>Known Problems</h1>
<p>The hash randomisation mentioned in <a href="#Incompatible-Changes">Incompatible Changes</a> is definitely
problematic: it will wake dormant bugs and shake out bad assumptions.</p>
<p>If you want to use mod_perl 2.x with Perl 5.8.1, you will need
mod_perl-1.99_10 or higher.  Earlier versions of mod_perl 2.x
do not work with the randomised hashes.  (mod_perl 1.x works fine.)
You will also need Apache::Test 1.04 or higher.</p>
<p>Many of the rarer platforms that worked 100% or pretty close to it
with perl 5.8.0 have been left a little bit untended since their
maintainers have been otherwise busy lately, and therefore there will
be more failures on those platforms.  Such platforms include Mac OS
Classic, IBM z/OS (and other EBCDIC platforms), and NetWare.  The most
common Perl platforms (Unix and Unix-like, Microsoft platforms, and
VMS) have large enough testing and expert population that they are
doing well.</p>
<a name="Tied-hashes-in-scalar-context"></a><h2>Tied hashes in scalar context</h2>
<p>Tied hashes do not currently return anything useful in scalar context,
for example when used as boolean tests:</p>
<pre class="verbatim"><ol><li>	if <span class="s">(</span><span class="i">%tied_hash</span><span class="s">)</span> <span class="s">{</span> ... <span class="s">}</span></li></ol></pre><p>The current nonsensical behaviour is always to return false,
regardless of whether the hash is empty or has elements.</p>
<p>The root cause is that there is no interface for the implementors of
tied hashes to implement the behaviour of a hash in scalar context.</p>
<a name="Net%3a%3aPing-450_service-and-510_ping_udp-failures"></a><h2>Net::Ping 450_service and 510_ping_udp failures</h2>
<p>The subtests 9 and 18 of lib/Net/Ping/t/450_service.t, and the
subtest 2 of lib/Net/Ping/t/510_ping_udp.t might fail if you have
an unusual networking setup.  For example in the latter case the
test is trying to send a UDP ping to the IP address 127.0.0.1.</p>
<a name="B%3a%3aC"></a><h2>B::C</h2>
<p>The C-generating compiler backend B::C (the frontend being
<code class="inline"><span class="w">perlcc</span> -c</code>
) is even more broken than it used to be because of
the extensive lexical variable changes.  (The good news is that
B::Bytecode and ByteLoader are better than they used to be.)</p>
<a name="Platform-Specific-Problems"></a><h1>Platform Specific Problems</h1>
<a name="EBCDIC-Platforms"></a><h2>EBCDIC Platforms</h2>
<p>IBM z/OS and other EBCDIC platforms continue to be problematic
regarding Unicode support.  Many Unicode tests are skipped when
they really should be fixed.</p>
<a name="Cygwin-1.5-problems"></a><h2>Cygwin 1.5 problems</h2>
<p>In Cygwin 1.5 the <i>io/tell</i> and <i>op/sysio</i> tests have failures for
some yet unknown reason.  In 1.5.5 the threads tests stress_cv,
stress_re, and stress_string are failing unless the environment
variable PERLIO is set to "perlio" (which makes also the io/tell
failure go away).</p>
<p>Perl 5.8.1 does build and work well with Cygwin 1.3: with (uname -a)
<code class="inline">CYGWIN_NT-5.0 ... 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 ...</code>
a 100% "make test"  was achieved with <code class="inline"><span class="w">Configure</span> -<span class="w">des</span> -<span class="w">Duseithreads</span></code>
.</p>
<a name="HP-UX%3a-HP-cc-warnings-about-sendfile-and-sendpath"></a><h2>HP-UX: HP cc warnings about sendfile and sendpath</h2>
<p>With certain HP C compiler releases (e.g. B.11.11.02) you will
get many warnings like this (lines wrapped for easier reading):</p>
<pre class="verbatim"><ol><li>  cc: "/usr/include/sys/socket.h", line 504: warning 562:</li><li>    Redeclaration of "sendfile" with a different storage class specifier:</li><li>      "sendfile" will have internal linkage.</li><li>  cc: "/usr/include/sys/socket.h", line 505: warning 562:</li><li>    Redeclaration of "sendpath" with a different storage class specifier:</li><li>      "sendpath" will have internal linkage.</li></ol></pre><p>The warnings show up both during the build of Perl and during certain
lib/ExtUtils tests that invoke the C compiler.  The warning, however,
is not serious and can be ignored.</p>
<a name="IRIX%3a-t%2funi%2ftr_7jis.t-falsely-failing"></a><h2>IRIX: t/uni/tr_7jis.t falsely failing</h2>
<p>The test t/uni/tr_7jis.t is known to report failure under 'make test'
or the test harness with certain releases of IRIX (at least IRIX 6.5
and MIPSpro Compilers Version 7.3.1.1m), but if run manually the test
fully passes.</p>
<a name="Mac-OS-X%3a-no-usemymalloc"></a><h2>Mac OS X: no usemymalloc</h2>
<p>The Perl malloc (<code class="inline">-<span class="w">Dusemymalloc</span></code>
) does not work at all in Mac OS X.
This is not that serious, though, since the native malloc works just
fine.</p>
<a name="Tru64%3a-No-threaded-builds-with-GNU-cc-(gcc)"></a><h2>Tru64: No threaded builds with GNU cc (gcc)</h2>
<p>In the latest Tru64 releases (e.g. v5.1B or later) gcc cannot be used
to compile a threaded Perl (-Duseithreads) because the system
<code class="inline"><span class="q">&lt;pthread.h&gt;</span></code>
 file doesn't know about gcc.</p>
<a name="Win32%3a-sysopen%2c-sysread%2c-syswrite"></a><h2>Win32: sysopen, sysread, syswrite</h2>
<p>As of the 5.8.0 release, sysopen()/sysread()/syswrite() do not behave
like they used to in 5.6.1 and earlier with respect to "text" mode.
These built-ins now always operate in "binary" mode (even if sysopen()
was passed the O_TEXT flag, or if binmode() was used on the file
handle).  Note that this issue should only make a difference for disk
files, as sockets and pipes have always been in "binary" mode in the
Windows port.  As this behavior is currently considered a bug,
compatible behavior may be re-introduced in a future release.  Until
then, the use of sysopen(), sysread() and syswrite() is not supported
for "text" mode operations.</p>
<a name="Future-Directions"></a><h1>Future Directions</h1>
<p>The following things <b>might</b> happen in future.  The first publicly
available releases having these characteristics will be the developer
releases Perl 5.9.x, culminating in the Perl 5.10.0 release.  These
are our best guesses at the moment: we reserve the right to rethink.</p>
<ul>
<li>
<p>PerlIO will become The Default.  Currently (in Perl 5.8.x) the stdio
library is still used if Perl thinks it can use certain tricks to
make stdio go <b>really</b> fast.  For future releases our goal is to
make PerlIO go even faster.</p>
</li>
<li>
<p>A new feature called <i>assertions</i> will be available.  This means that
one can have code called assertions sprinkled in the code: usually
they are optimised away, but they can be enabled with the <code class="inline">-A</code>
 option.</p>
</li>
<li>
<p>A new operator <code class="inline"><span class="q">//</span></code>
 (defined-or) will be available.  This means that
one will be able to say</p>
<pre class="verbatim"><ol><li>    <span class="i">$a</span> // <span class="i">$b</span></li></ol></pre><p>instead of</p>
<pre class="verbatim"><ol><li>   <a class="l_k" href="functions/defined.html">defined</a> <span class="i">$a</span> ? <span class="i">$a</span> <span class="co">:</span> <span class="i">$b</span></li></ol></pre><p>and</p>
<pre class="verbatim"><ol><li>   <span class="i">$c</span> //= <span class="i">$d</span><span class="sc">;</span></li></ol></pre><p>instead of</p>
<pre class="verbatim"><ol><li>   <span class="i">$c</span> = <span class="i">$d</span> unless <a class="l_k" href="functions/defined.html">defined</a> <span class="i">$c</span><span class="sc">;</span></li></ol></pre><p>The operator will have the same precedence and associativity as <code class="inline">||</code>.
A source code patch against the Perl 5.8.1 sources will be available
in CPAN as <i>authors/id/H/HM/HMBRAND/dor-5.8.1.diff</i>.</p>
</li>
<li>
<p><code class="inline"><a class="l_k" href="functions/unpack.html">unpack()</a></code> will default to unpacking the <code class="inline"><span class="i">$_</span></code>
.</p>
</li>
<li>
<p>Various Copy-On-Write techniques will be investigated in hopes
of speeding up Perl.</p>
</li>
<li>
<p>CPANPLUS, Inline, and Module::Build will become core modules.</p>
</li>
<li>
<p>The ability to write true lexically scoped pragmas will be introduced.</p>
</li>
<li>
<p>Work will continue on the bytecompiler and byteloader.</p>
</li>
<li>
<p>v-strings as they currently exist are scheduled to be deprecated.  The
v-less form (1.2.3) will become a "version object" when used with <code class="inline"><a class="l_k" href="functions/use.html">use</a></code>,
<code class="inline"><a class="l_k" href="functions/require.html">require</a></code>, and <code class="inline"><span class="i">$VERSION</span></code>
.  $^V will also be a "version object" so the
printf("%vd",...) construct will no longer be needed.  The v-ful version
(v1.2.3) will become obsolete.  The equivalence of strings and v-strings (e.g.
that currently 5.8.0 is equal to "\5\8\0") will go away.  <b>There may be no
deprecation warning for v-strings</b>, though: it is quite hard to detect when
v-strings are being used safely, and when they are not.</p>
</li>
<li>
<p>5.005 Threads Will Be Removed</p>
</li>
<li>
<p>The <code class="inline"><span class="i">$*</span></code>
 Variable Will Be Removed
(it was deprecated a long time ago)</p>
</li>
<li>
<p>Pseudohashes Will Be Removed</p>
</li>
</ul>
<a name="Reporting-Bugs"></a><h1>Reporting Bugs</h1>
<p>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 <a href="http://bugs.perl.org/">http://bugs.perl.org/</a> .  There may also be
information at <a href="http://www.perl.com/">http://www.perl.com/</a> , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <b>perlbug</b>
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 <code class="inline"><span class="w">perl</span> -<span class="w">V</span></code>
, will be sent off to perlbug@perl.org to be
analysed by the Perl porting team.  You can browse and search
the Perl 5 bugs at <a href="http://bugs.perl.org/">http://bugs.perl.org/</a></p>
<a name="SEE-ALSO"></a><h1>SEE ALSO</h1>
<p>The <i>Changes</i> file for exhaustive details on what changed.</p>
<p>The <i>INSTALL</i> file for how to build Perl.</p>
<p>The <i>README</i> file for general stuff.</p>
<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>




  <div id="page_index" class="hud_container">
    <div id="page_index_header" class="hud_header">
      <div id="page_index_close" class="hud_close"><a href="#" onClick="pageIndex.hide();return false;"></a></div>
      <div id="page_index_title" class="hud_title"><span class="hud_span_top">Page index</span></div>
      <div id="page_index_topright" class="hud_topright"></div>
    </div>
    <div id="page_index_content" class="hud_content">
      <ul><li><a href="#NAME">NAME</a><li><a href="#DESCRIPTION">DESCRIPTION</a><li><a href="#Incompatible-Changes">Incompatible Changes</a><ul><li><a href="#Hash-Randomisation">Hash Randomisation</a><li><a href="#UTF-8-On-Filehandles-No-Longer-Activated-By-Locale">UTF-8 On Filehandles No Longer Activated By Locale</a><li><a href="#Single-number-v-strings-are-no-longer-v-strings-before-%22%3d%3e%22">Single-number v-strings are no longer v-strings before "=>"</a><li><a href="#(Win32)-The--C-Switch-Has-Been-Repurposed">(Win32) The -C Switch Has Been Repurposed</a><li><a href="#(Win32)-The-%2fd-Switch-Of-cmd.exe">(Win32) The /d Switch Of cmd.exe</a></ul><li><a href="#Core-Enhancements">Core Enhancements</a><ul><li><a href="#UTF-8-no-longer-default-under-UTF-8-locales">UTF-8 no longer default under UTF-8 locales</a><li><a href="#Unsafe-signals-again-available">Unsafe signals again available</a><li><a href="#Tied-Arrays-with-Negative-Array-Indices">Tied Arrays with Negative Array Indices</a><li><a href="#local-%24%7b%24x%7d">local ${$x}</a><li><a href="#Unicode-Character-Database-4.0.0">Unicode Character Database 4.0.0</a><li><a href="#Deprecation-Warnings">Deprecation Warnings</a><li><a href="#Miscellaneous-Enhancements">Miscellaneous Enhancements</a></ul><li><a href="#Modules-and-Pragmata">Modules and Pragmata</a><ul><li><a href="#Updated-Modules-And-Pragmata">Updated Modules And Pragmata</a></ul><li><a href="#Utility-Changes">Utility Changes</a><li><a href="#New-Documentation">New Documentation</a><li><a href="#Installation-and-Configuration-Improvements">Installation and Configuration Improvements</a><ul><li><a href="#Platform-specific-enhancements">Platform-specific enhancements</a></ul><li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a><ul><li><a href="#Closures%2c-eval-and-lexicals">Closures, eval and lexicals</a><li><a href="#Generic-fixes">Generic fixes</a><li><a href="#Platform-specific-fixes">Platform-specific fixes</a></ul><li><a href="#New-or-Changed-Diagnostics">New or Changed Diagnostics</a><ul><li><a href="#Changed-%22A-thread-exited-while-%25d-threads-were-running%22">Changed "A thread exited while %d threads were running"</a><li><a href="#Removed-%22Attempt-to-clear-a-restricted-hash%22">Removed "Attempt to clear a restricted hash"</a><li><a href="#New-%22Illegal-declaration-of-anonymous-subroutine%22">New "Illegal declaration of anonymous subroutine"</a><li><a href="#Changed-%22Invalid-range-%22%25s%22-in-transliteration-operator%22">Changed "Invalid range "%s" in transliteration operator"</a><li><a href="#New-%22Missing-control-char-name-in-%5cc%22">New "Missing control char name in \c"</a><li><a href="#New-%22Newline-in-left-justified-string-for-%25s%22">New "Newline in left-justified string for %s"</a><li><a href="#New-%22Possible-precedence-problem-on-bitwise-%25c-operator%22">New "Possible precedence problem on bitwise %c operator"</a><li><a href="#New-%22Pseudo-hashes-are-deprecated%22">New "Pseudo-hashes are deprecated"</a><li><a href="#New-%22read()-on-%25s-filehandle-%25s%22">New "read() on %s filehandle %s"</a><li><a href="#New-%225.005-threads-are-deprecated%22">New "5.005 threads are deprecated"</a><li><a href="#New-%22Tied-variable-freed-while-still-in-use%22">New "Tied variable freed while still in use"</a><li><a href="#New-%22To%25s%3a-illegal-mapping-'%25s'%22">New "To%s: illegal mapping '%s'"</a><li><a href="#New-%22Use-of-freed-value-in-iteration%22">New "Use of freed value in iteration"</a></ul><li><a href="#Changed-Internals">Changed Internals</a><li><a href="#New-Tests">New Tests</a><li><a href="#Known-Problems">Known Problems</a><ul><li><a href="#Tied-hashes-in-scalar-context">Tied hashes in scalar context</a><li><a href="#Net%3a%3aPing-450_service-and-510_ping_udp-failures">Net::Ping 450_service and 510_ping_udp failures</a><li><a href="#B%3a%3aC">B::C</a></ul><li><a href="#Platform-Specific-Problems">Platform Specific Problems</a><ul><li><a href="#EBCDIC-Platforms">EBCDIC Platforms</a><li><a href="#Cygwin-1.5-problems">Cygwin 1.5 problems</a><li><a href="#HP-UX%3a-HP-cc-warnings-about-sendfile-and-sendpath">HP-UX: HP cc warnings about sendfile and sendpath</a><li><a href="#IRIX%3a-t%2funi%2ftr_7jis.t-falsely-failing">IRIX: t/uni/tr_7jis.t falsely failing</a><li><a href="#Mac-OS-X%3a-no-usemymalloc">Mac OS X: no usemymalloc</a><li><a href="#Tru64%3a-No-threaded-builds-with-GNU-cc-(gcc)">Tru64: No threaded builds with GNU cc (gcc)</a><li><a href="#Win32%3a-sysopen%2c-sysread%2c-syswrite">Win32: sysopen, sysread, syswrite</a></ul><li><a href="#Future-Directions">Future Directions</a><li><a href="#Reporting-Bugs">Reporting Bugs</a><li><a href="#SEE-ALSO">SEE ALSO</a></ul>
    </div>
    <div id="page_index_footer" class="hud_footer">
      <div id="page_index_bottomleft" class="hud_bottomleft"></div>
      <div id="page_index_bottom" class="hud_bottom"><span class="hud_span_bottom"></span></div>
      <div id="page_index_resize" class="hud_resize"></div>
    </div>
  </div>


	    &nbsp;
          </div>
          <div id="content_footer">
          </div>
        </div>
        <div class="clear"></div>
      </div>
      
    <div id="footer">
      <div id="footer_content">
        <div id="footer_strapline">
          perldoc.perl.org - Official documentation for the Perl programming language
        </div>
        <div id="footer_links">
          <div id="address">
            <p class="name">Contact details</p>
            <p class="address">
	      Site maintained by <a href="mailto:jj@jonallen.info">Jon Allen (JJ)</a><br>
	    </p>
            <p class="contact">
              Documentation maintained by the <a href="http://lists.cpan.org/showlist.cgi?name=perl5-porters">Perl 5 Porters</a>
            </p>
          </div>
          <ul class="f1">
            <li>Manual
              <ul class="f2">
                <li><a href="index-overview.html">Overview</a>
                <li><a href="index-tutorials.html">Tutorials</a>
                <li><a href="index-faq.html">FAQs</a>
                <li><a href="index-history.html">Changes</a>
              </ul>
            <li>Reference
              <ul class="f2">
                <li><a href="index-language.html">Language</a>
                <li><a href="index-functions.html">Functions</a>
                <li><a href="perlop.html">Operators</a>
                <li><a href="perlvar.html">Variables</a>
              </ul>
            <li>Modules
              <ul class="f2">
                <li><a href="index-modules-A.html">Modules</a>
                <li><a href="index-pragmas.html">Pragmas</a>
                <li><a href="index-utilities.html">Utilities</a>
              </ul>
            <li>Misc
              <ul class="f2">
                <li><a href="index-licence.html">License</a>
                <li><a href="index-internals.html">Internals</a>
                <li><a href="index-platforms.html">Platforms</a>
              </ul>          </ul>
          <div class="clear"></div>
        </div>
      </div>
      <div id="footer_end">
      </div>
    </div>
      
    </div>
      <script language="JavaScript" type="text/javascript" src="static/exploreperl.js"></script>
      <script language="JavaScript" src="static/combined-20100403.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
  perldoc.setPath(0);
  perldoc.pageName    = 'perl581delta';
  perldoc.pageAddress = 'perl581delta.html';
  perldoc.contentPage = 1;
  explorePerl.render();
  explorePerl.addEvents('explore_anchor');
</script>
    
  </body>
</html>