/usr/share/doc/perl-doc-html/perl5218delta.html is in perl-doc-html 5.22.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>perl5218delta - 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>
•
<a href="index-modules-B.html">B</a>
•
<a href="index-modules-C.html">C</a>
•
<a href="index-modules-D.html">D</a>
•
<a href="index-modules-E.html">E</a>
<li>
<a href="index-modules-F.html">F</a>
•
<a href="index-modules-G.html">G</a>
•
<a href="index-modules-H.html">H</a>
•
<a href="index-modules-I.html">I</a>
•
<a href="index-modules-L.html">L</a>
<li>
<a href="index-modules-M.html">M</a>
•
<a href="index-modules-N.html">N</a>
•
<a href="index-modules-O.html">O</a>
•
<a href="index-modules-P.html">P</a>
•
<a href="index-modules-S.html">S</a>
<li>
<a href="index-modules-T.html">T</a>
•
<a href="index-modules-U.html">U</a>
•
<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>perl5218delta</h1>
</div>
<div id="perl_version">
Perl 5 version 22.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> •
<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> >
<a href="index-history.html">History / Changes</a> >
perl5218delta
</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>perl5218delta</h1>
<!-- -->
<ul><li><a href="#NAME">NAME</a><li><a href="#DESCRIPTION">DESCRIPTION</a><li><a href="#Notice">Notice</a><li><a href="#Core-Enhancements">Core Enhancements</a><ul><li><a href="#The-warnings-pragma-now-supports-warnings-outside-of-%22all%22">The warnings pragma now supports warnings outside of "all"</a><li><a href="#Non-Capturing-Regular-Expression-Flag">Non-Capturing Regular Expression Flag</a><li><a href="#prototype-with-no-arguments">prototype with no arguments</a><li><a href="#use-re-'strict'">use re 'strict'</a><li><a href="#New-%22const%22-subroutine-attribute">New "const" subroutine attribute</a></ul><li><a href="#Incompatible-Changes">Incompatible Changes</a><ul><li><a href="#sub-signatures-moved-before-attributes">sub signatures moved before attributes</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="#Documentation">Documentation</a><ul><li><a href="#New-Documentation">New Documentation</a></ul><li><a href="#Diagnostics">Diagnostics</a><ul><li><a href="#New-Diagnostics">New Diagnostics</a><li><a href="#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a></ul><li><a href="#Configuration-and-Compilation">Configuration and Compilation</a><li><a href="#Testing">Testing</a><li><a href="#Platform-Support">Platform Support</a><ul><li><a href="#Platform-Specific-Notes">Platform-Specific Notes</a></ul><li><a href="#Internal-Changes">Internal Changes</a><li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a><li><a href="#Acknowledgements">Acknowledgements</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>perl5218delta - what is new for perl v5.21.8</p>
<a name="DESCRIPTION"></a><h1>DESCRIPTION</h1>
<p>This document describes differences between the 5.21.7 release and the 5.21.8
release.</p>
<p>If you are upgrading from an earlier release such as 5.21.6, first read
<a href="perl5217delta.html">perl5217delta</a>, which describes differences between 5.21.6 and 5.21.7.</p>
<a name="Notice"></a><h1>Notice</h1>
<p>With this release we are now in the contentious changes portion of the code
freeze as we prepare for the next stable release of Perl 5.</p>
<a name="Core-Enhancements"></a><h1>Core Enhancements</h1>
<a name="The-warnings-pragma-now-supports-warnings-outside-of-%22all%22"></a><h2>The warnings pragma now supports warnings outside of "all"</h2>
<p>Ever since perl v5.6.0 we've had no way of adding new warnings without
retroactively adding them to all existing programs that used <code class="inline">-w</code>
,
<code class="inline">-W</code>
or <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">warnings</span></code>
.</p>
<p>This caused us to not add new useful warnings out of fear that they
might unduly burden users who just wanted to upgrade perl and didn't
want to deal with a bunch of warnings from their existing code.</p>
<p>We now support a way to have our cake and eat it too, and can add new
warnings to the core going forward through other top-level warning
categories. See <a href="warnings.html#Top-level-warning-categories-%26-associated-confusion">the warnings documentation</a> for details.</p>
<a name="Non-Capturing-Regular-Expression-Flag"></a><h2>Non-Capturing Regular Expression Flag</h2>
<p>Regular expressions now support a <code class="inline"><span class="q">/n</span></code>
flag that disables capturing
and filling in <code class="inline"><span class="i">$1</span></code>
, <code class="inline"><span class="i">$2</span></code>
, etc... inside of groups:</p>
<pre class="verbatim"><ol><li> <span class="q">"hello"</span> =~ <span class="q">/(hi|hello)/</span><span class="w">n</span><span class="sc">;</span> <span class="c"># $1 is not set</span></li></ol></pre><p>This is equivalent to putting <code class="inline">?:</code> at the beginning of every capturing group.</p>
<p>See <a href="perlre.html#n">n in perlre</a> for more information.</p>
<a name="prototype-with-no-arguments"></a><h2><code class="inline"><a class="l_k" href="functions/prototype.html">prototype</a></code> with no arguments</h2>
<p><code class="inline"><a class="l_k" href="functions/prototype.html">prototype()</a></code> with no arguments now infers <code class="inline"><span class="i">$_</span></code>
. [perl #123514]</p>
<a name="use-re-'strict'"></a><h2><code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">re</span> <span class="q">'strict'</span></code>
</h2>
<p>This applies stricter syntax rules to regular expression patterns
compiled within its scope, which hopefully will alert you to typos and
other unintentional behavior that backwards-compatibility issues prevent
us from doing in normal regular expression compilations. Because the
behavior of this is subject to change in future Perl releases as we gain
experience, using this pragma will raise a category
<code class="inline"><span class="j">experimental:</span><span class="w">re_strict</span></code>
warning.
See <a href="re.html#'strict'-mode">'strict' in re</a>.</p>
<a name="New-%22const%22-subroutine-attribute"></a><h2>New "const" subroutine attribute</h2>
<p>The "const" attribute can be applied to an anonymous subroutine. It causes
it to be executed immediately when it is cloned. Its value is captured and
used to create a new constant subroutine that is returned. This feature is
experimental. See <a href="perlsub.html#Constant-Functions">Constant Functions in perlsub</a>.</p>
<a name="Incompatible-Changes"></a><h1>Incompatible Changes</h1>
<a name="sub-signatures-moved-before-attributes"></a><h2>sub signatures moved before attributes</h2>
<p>The experimental sub signatures feature, as introduced in 5.20, parsed
signatures after attributes. In this release, the positioning has been
moved such that signatures occur in exactly the same positioning a
prototype would be found.</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>
<ul>
<li>
<p><a href="arybase.html">arybase</a> has been upgraded from version 0.09 to 0.10.</p>
</li>
<li>
<p><a href="attributes.html">attributes</a> has been upgraded from version 0.24 to 0.25.</p>
<p>Minor internal change only.</p>
</li>
<li>
<p><a href="autodie.html">autodie</a> has been upgraded from version 2.25 to 2.26.</p>
</li>
<li>
<p><a href="B.html">B</a> has been upgraded from version 1.54 to 1.55.</p>
<p>A bug where, after an ithread creation or psuedofork, special/immortal SVs in
the child ithread/psuedoprocess did not have the correct class of
<code class="inline"><span class="w">B::SPECIAL</span></code>
, has been fixed.</p>
<p>The <code class="inline"><span class="w">id</span></code>
and <code class="inline"><span class="w">outid</span></code>
PADLIST methods have been added.</p>
</li>
<li>
<p><a href="B/Deparse.html">B::Deparse</a> has been upgraded from version 1.31 to 1.32.</p>
<p>Deparsing <code class="inline"><a class="l_k" href="functions/BEGIN.html">BEGIN</a> <span class="s">{</span> <a class="l_k" href="functions/undef.html">undef</a> <span class="i">&foo</span> <span class="s">}</span></code>
with the <b>-w</b> switch enabled started to
emit 'uninitialized' warnings in Perl 5.14. This has been fixed.</p>
<p>Deparsing calls to subs with a <code class="inline"><span class="s">(</span><span class="sc">;</span>+<span class="s">)</span></code>
prototype resulted in an infinite
loop. The <code class="inline"><span class="s">(</span><span class="sc">;</span><span class="i">$</span></code>
) <code class="inline"><span class="s">(</span><span class="w">_</span><span class="s">)</span></code>
and <code class="inline"><span class="s">(</span><span class="sc">;</span><span class="w">_</span><span class="s">)</span></code>
prototypes were given the wrong
precedence, causing <code class="inline"><span class="i">foo</span><span class="s">(</span><span class="i">$a</span><<span class="i">$b</span><span class="s">)</span></code>
to be deparsed without the parentheses.</p>
</li>
<li>
<p><a href="Compress/Raw/Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.067 to 2.068.</p>
</li>
<li>
<p><a href="Compress/Raw/Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.067 to 2.068.</p>
</li>
<li>
<p><a href="CPAN/Meta/Requirements.html">CPAN::Meta::Requirements</a> has been upgraded from version 2.130 to 2.131.</p>
</li>
<li>
<p><a href="Data/Dumper.html">Data::Dumper</a> has been upgraded from version 2.155 to 2.156.</p>
</li>
<li>
<p><a href="DB_File.html">DB_File</a> has been upgraded from version 1.834 to 1.835.</p>
</li>
<li>
<p><a href="Devel/Peek.html">Devel::Peek</a> has been upgraded from version 1.20 to 1.21.</p>
</li>
<li>
<p><a href="Devel/PPPort.html">Devel::PPPort</a> has been upgraded from version 3.25 to 3.28.</p>
</li>
<li>
<p><a href="Digest/MD5.html">Digest::MD5</a> has been upgraded from version 2.53 to 2.54.</p>
</li>
<li>
<p><a href="Digest/SHA.html">Digest::SHA</a> has been upgraded from version 5.93 to 5.95.</p>
</li>
<li>
<p><a href="DynaLoader.html">DynaLoader</a> has been upgraded from version 1.29 to 1.30.</p>
</li>
<li>
<p><a href="ExtUtils/Command.html">ExtUtils::Command</a> has been upgraded from version 1.18 to 1.20.</p>
</li>
<li>
<p><a href="ExtUtils/Manifest.html">ExtUtils::Manifest</a> has been upgraded from version 1.69 to 1.70.</p>
</li>
<li>
<p><a href="File/Glob.html">File::Glob</a> has been upgraded from version 1.23 to 1.24.</p>
<p>Avoid SvIV() expanding to call get_sv() three times in a few
places. [perl #123606]</p>
</li>
<li>
<p><a href="Filter/Util/Call.html">Filter::Util::Call</a> has been upgraded from version 1.51 to 1.54.</p>
</li>
<li>
<p><a href="Getopt/Long.html">Getopt::Long</a> has been upgraded from version 2.42 to 2.43.</p>
</li>
<li>
<p><a href="IO/Compress/Base.html">IO::Compress::Base</a> has been upgraded from version 2.067 to 2.068.</p>
</li>
<li>
<p><a href="IO/Socket/IP.html">IO::Socket::IP</a> has been upgraded from version 0.34 to 0.36.</p>
</li>
<li>
<p><a href="MIME/Base64.html">MIME::Base64</a> has been upgraded from version 3.14 to 3.15.</p>
</li>
<li>
<p><a href="Module/CoreList.html">Module::CoreList</a> has been upgraded from version 5.20141220 to 5.20150120.</p>
</li>
<li>
<p><a href="Module/Load/Conditional.html">Module::Load::Conditional</a> has been upgraded from version 0.62 to 0.64.</p>
</li>
<li>
<p><a href="Module/Metadata.html">Module::Metadata</a> has been upgraded from version 1.000024 to 1.000026.</p>
</li>
<li>
<p><a href="Opcode.html">Opcode</a> has been upgraded from version 1.30 to 1.31.</p>
</li>
<li>
<p><a href="PerlIO/encoding.html">PerlIO::encoding</a> has been upgraded from version 0.20 to 0.21.</p>
</li>
<li>
<p><a href="Pod/Simple.html">Pod::Simple</a> has been upgraded from version 3.28 to 3.29.</p>
</li>
<li>
<p><a href="POSIX.html">POSIX</a> has been upgraded from version 1.48 to 1.49.</p>
</li>
<li>
<p><a href="re.html">re</a> has been upgraded from version 0.28 to 0.30.</p>
</li>
<li>
<p><a href="Safe.html">Safe</a> has been upgraded from version 2.38 to 2.39.</p>
<p><code class="inline"><span class="w">reval</span></code>
was not propagating void context properly.</p>
</li>
<li>
<p><a href="SDBM_File.html">SDBM_File</a> has been upgraded from version 1.12 to 1.13.</p>
<p>Simplified the build process. [perl #123413]</p>
</li>
<li>
<p><a href="Test/Harness.html">Test::Harness</a> has been upgraded from version 3.34 to 3.35.</p>
</li>
<li>
<p><a href="Test/Simple.html">Test::Simple</a> has been upgraded from version 1.301001_090 to 1.301001_097.</p>
</li>
<li>
<p><a href="Unicode/Collate.html">Unicode::Collate</a> has been upgraded from version 1.09 to 1.10.</p>
</li>
<li>
<p><a href="http://search.cpan.org/perldoc/VMS::DCLsym">VMS::DCLsym</a> has been upgraded from version 1.05 to 1.06.</p>
</li>
<li>
<p><a href="warnings.html">warnings</a> has been upgraded from version 1.29 to 1.30.</p>
</li>
</ul>
<a name="Documentation"></a><h1>Documentation</h1>
<a name="New-Documentation"></a><h2>New Documentation</h2>
<a name="the-perlunicook-manpage"></a><h3><a href="perlunicook.html">perlunicook</a></h3>
<p>This document, by Tom Christiansen, provides examples of handling Unicode in
Perl.</p>
<a name="Diagnostics"></a><h1>Diagnostics</h1>
<p>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 <a href="perldiag.html">perldiag</a>.</p>
<a name="New-Diagnostics"></a><h2>New Diagnostics</h2>
<a name="New-Errors"></a><h3>New Errors</h3>
<ul>
<li>
<p><a href="perldiag.html#Bad-symbol-for-scalar">Bad symbol for scalar</a></p>
<p>(P) An internal request asked to add a scalar entry to something that
wasn't a symbol table entry.</p>
</li>
<li>
<p><a href="perldiag.html#%3aconst-is-not-permitted-on-named-subroutines">:const is not permitted on named subroutines</a></p>
<p>(F) The "const" attribute causes an anonymous subroutine to be run and
its value captured at the time that it is cloned. Names subroutines are
not cloned like this, so the attribute does not make sense on them.</p>
</li>
</ul>
<a name="New-Warnings"></a><h3>New Warnings</h3>
<ul>
<li>
<p><a href="perldiag.html#%3aconst-is-experimental">:const is experimental</a></p>
<p>(S experimental::const_attr) The "const" attribute is experimental.
If you want to use the feature, disable the warning with <code class="inline"><a class="l_k" href="functions/no.html">no</a> <span class="w">warnings</span>
<span class="q">'experimental::const_attr'</span></code>
, but know that in doing so you are taking
the risk that your code may break in a future Perl version.</p>
</li>
<li>
<p><a href="perldiag.html#Non-finite-repeat-count-does-nothing">Non-finite repeat count does nothing</a></p>
<p>(W numeric) You tried to execute the
<a href="perlop.html#Multiplicative-Operators">x </a> repetition operator <code class="inline"><span class="w">Inf</span></code>
(or
<code class="inline">-<span class="w">Inf</span></code>
) or <code class="inline"><span class="w">NaN</span></code>
times, which doesn't make sense.</p>
</li>
<li>
<p><a href="perldiag.html#Useless-use-of-attribute-%22const%22">Useless use of attribute const</a></p>
<p>(W misc) The "const" attribute has no effect except
on anonymous closure prototypes. You applied it to
a subroutine via <a href="attributes.html">attributes.pm</a>. This is only useful
inside an attribute handler for an anonymous subroutine.</p>
</li>
<li>
<p><a href="perldiag.html#Unusual-use-of-%25s-in-void-context">Unusual use of %s in void context</a></p>
<p>(W void_unusual) Similar to the "Useless use of %s in void context"
warning, but only turned on by the top-level "pedantic" warning
category, used for e.g. <code class="inline"><a class="l_k" href="functions/grep.html">grep</a></code> in void context, which may indicate a
bug, but could also just be someone using <code class="inline"><a class="l_k" href="functions/grep.html">grep</a></code> for its side-effects
as a loop.</p>
<p>Enabled as part of "extra" warnings, not in the "all" category. See
<a href="warnings.html">warnings</a> for details</p>
</li>
<li>
<p><a href="perldiag.html#%22use-re-'strict'%22-is-experimental">use re 'strict' is experimental</a></p>
<p>(S experimental::re_strict) The things that are different when a regular
expression pattern is compiled under <code class="inline"><span class="q">'strict'</span></code>
are subject to change
in future Perl releases in incompatible ways. This means that a pattern
that compiles today may not in a future Perl release. This warning is
to alert you to that risk.</p>
<p><a href="perldiag.html#Wide-character-(U%2b%25X)-in-%25s">Wide character (U+%X) in %s</a></p>
<p>(W locale) While in a single-byte locale (<i>i.e.</i>, a non-UTF-8
one), a multi-byte character was encountered. Perl considers this
character to be the specified Unicode code point. Combining non-UTF8
locales and Unicode is dangerous. Almost certainly some characters
will have two different representations. For example, in the ISO 8859-7
(Greek) locale, the code point 0xC3 represents a Capital Gamma. But so
also does 0x393. This will make string comparisons unreliable.</p>
<p>You likely need to figure out how this multi-byte character got mixed up
with your single-byte locale (or perhaps you thought you had a UTF-8
locale, but Perl disagrees).</p>
</li>
<li>
<p><a href="perldiag.html#Both-or-neither-range-ends-should-be-Unicode-in-regex%3b-marked-by-%3c---HERE-in-m%2f%25s%2f">Both or neither range ends should be Unicode in regex; marked by <-- HERE in m/%s/</a></p>
<p>(W regexp) (only under <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">re</span> <span class="q">'strict'</span></code>
or within <code class="inline"><span class="s">(</span><span class="q">?[...])</span></code>
)</p>
<p>In a bracketed character class in a regular expression pattern, you
had a range which has exactly one end of it specified using <code class="inline">\<span class="w">N</span><span class="s">{</span><span class="s">}</span></code>
, and
the other end is specified using a non-portable mechanism. Perl treats
the range as a Unicode range, that is, all the characters in it are
considered to be the Unicode characters, and which may be different code
points on some platforms Perl runs on. For example, <code class="inline"><span class="s">[</span>\<span class="i">N</span><span class="s">{</span><span class="w">U</span>+<span class="n">06</span><span class="s">}</span>-\<span class="w">x08</span><span class="s">]</span></code>
is treated as if you had instead said <code class="inline"><span class="s">[</span>\<span class="i">N</span><span class="s">{</span><span class="w">U</span>+<span class="n">06</span><span class="s">}</span>-\<span class="i">N</span><span class="s">{</span><span class="w">U</span>+<span class="n">08</span><span class="s">}</span><span class="s">]</span></code>
, that is it
matches the characters whose code points in Unicode are 6, 7, and 8.
But that <code class="inline">\<span class="w">x08</span></code>
might indicate that you meant something different, so
the warning gets raised.</p>
</li>
<li>
<p><a href="perldiag.html#Ranges-of-ASCII-printables-should-be-some-subset-of-%220-9%22%2c-%22A-Z%22%2c-or-%22a-z%22-in-regex%3b-marked-by-%3c---HERE-in-m%2f%25s%2f">Ranges of ASCII printables should be some subset of 0-9, A-Z, or a-z in regex; marked by <-- HERE in m/%s/</a></p>
<p>(W regexp) (only under <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">re</span> <span class="q">'strict'</span></code>
or within <code class="inline"><span class="s">(</span><span class="q">?[...])</span></code>
)</p>
<p>Stricter rules help to find typos and other errors. Perhaps you didn't
even intend a range here, if the <code class="inline"><span class="q">"-"</span></code>
was meant to be some other
character, or should have been escaped (like <code class="inline"><span class="q">"\-"</span></code>
). If you did
intend a range, the one that was used is not portable between ASCII and
EBCDIC platforms, and doesn't have an obvious meaning to a casual
reader.</p>
<pre class="verbatim"><ol><li> <span class="s">[</span><span class="n">3</span>-<span class="n">7</span><span class="s">]</span> <span class="c"># OK; Obvious and portable</span></li><li> <span class="s">[</span><span class="w">d</span>-g<span class="s">]</span> <span class="c"># OK; Obvious and portable</span></li><li> <span class="s">[</span><span class="w">A</span>-<span class="w">Y</span><span class="s">]</span> <span class="c"># OK; Obvious and portable</span></li><li> <span class="s">[</span><span class="w">A</span>-z<span class="s">]</span> <span class="c"># WRONG; Not portable; not clear what is meant</span></li><li> <span class="s">[</span><span class="w">a</span>-<span class="w">Z</span><span class="s">]</span> <span class="c"># WRONG; Not portable; not clear what is meant</span></li><li> <span class="s">[</span><span class="i">%-</span>.<span class="s">]</span> <span class="c"># WRONG; Not portable; not clear what is meant</span></li><li> <span class="s">[</span>\<span class="w">x41</span>-<span class="w">Z</span><span class="s">]</span> <span class="c"># WRONG; Not portable; not obvious to non-geek</span></li></ol></pre><p>(You can force portability by specifying a Unicode range, which means that
the endpoints are specified by
<a href="perlrecharclass.html#Character-Ranges">\N{...} </a>, but the meaning may
still not be obvious.)
The stricter rules require that ranges that start or stop with an ASCII
character that is not a control have all their endpoints be the literal
character, and not some escape sequence (like <code class="inline"><span class="q">"\x41"</span></code>
), and the ranges
must be all digits, or all uppercase letters, or all lowercase letters.</p>
</li>
<li>
<p><a href="perldiag.html#Ranges-of-digits-should-be-from-the-same-group-in-regex%3b-marked-by-%3c---HERE-in-m%2f%25s%2f">Ranges of digits should be from the same group in regex; marked by <-- HERE in m/%s/</a></p>
<p>(W regexp) (only under <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">re</span> <span class="q">'strict'</span></code>
or within <code class="inline"><span class="s">(</span><span class="q">?[...])</span></code>
)</p>
<p>Stricter rules help to find typos and other errors. You included a
range, and at least one of the end points is a decimal digit. Under the
stricter rules, when this happens, both end points should be digits in
the same group of 10 consecutive digits.</p>
</li>
<li>
<p><a href="perldiag.html#%22%25s%22-is-more-clearly-written-simply-as-%22%25s%22-in-regex%3b-marked-by-%3c---HERE-in-m%2f%25s%2f">%s is more clearly written simply as %s in regex; marked by <-- HERE in m/%s/</a></p>
<p>(W regexp) (only under <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">re</span> <span class="q">'strict'</span></code>
or within <code class="inline"><span class="s">(</span><span class="q">?[...])</span></code>
)</p>
<p>You specified a character that has the given plainer way of writing it,
and which is also portable to platforms running with different character
sets.</p>
</li>
</ul>
<a name="Changes-to-Existing-Diagnostics"></a><h2>Changes to Existing Diagnostics</h2>
<ul>
<li>
<p>The message
<a href="perldiag.html#Locale-'%25s'-may-not-work-well.%25s">Locale '%s' may not work well.%s</a>
is no longer raised unless the problemtatic locale is actually used in
the Perl program. Previously it was raised if it merely was the
underlying locale. All Perl programs have an underlying locale at all
times, but something like a <code class="inline"><a class="l_k" href="functions/use.html">use</a> <span class="w">locale</span></code>
is needed for that locale
to actually have some effect. This message will not be raised when
the underlying locale is hidden.</p>
</li>
</ul>
<a name="Configuration-and-Compilation"></a><h1>Configuration and Compilation</h1>
<ul>
<li>
<p>pthreads and lcl will be linked by default if present. This allows XS modules
that require threading to work on non-threaded perls. Note that you must still
pass <code class="inline">-<span class="w">Dusethreads</span></code>
if you want a threaded perl.</p>
</li>
</ul>
<a name="Testing"></a><h1>Testing</h1>
<ul>
<li>
<p>A new test script, <i>bigmem/subst.t</i>, has been added to test memory usage of
subst on very large strings.</p>
</li>
<li>
<p>A new test script, <i>op/anonconst.t</i>, has been added to test experimental
:const subroutines.</p>
</li>
<li>
<p>A new test script, <i>re/reg_nocapture.t</i>, has been added to test the new
<code class="inline"><span class="q">/n</span></code>
regexp flag.</p>
</li>
</ul>
<a name="Platform-Support"></a><h1>Platform Support</h1>
<a name="Platform-Specific-Notes"></a><h2>Platform-Specific Notes</h2>
<ul>
<li><a name="Win32"></a><b>Win32</b>
<ul>
<li>
<p>Previously, on Visual C++ for Win64 built Perls only, when compiling every Perl
XS module (including CPAN ones) and Perl aware .c file with a 64 bit Visual C++,
would unconditionally have around a dozen warnings from hv_func.h. These
warnings have been silenced. GCC all bitness and Visual C++ for Win32 were
not affected.</p>
</li>
<li>
<p>Support for building without PerlIO has been removed from the Windows
makefiles. Non-PerlIO builds were all but deprecated in Perl 5.18.0 and are
already not supported by <i>Configure</i> on POSIX systems.</p>
</li>
<li>
<p>Between 2 and 6 ms and 7 I/O calls have been saved per attempt to open a perl
module for each path in <code class="inline"><span class="i">@INC</span></code>
.</p>
</li>
</ul>
</li>
</ul>
<a name="Internal-Changes"></a><h1>Internal Changes</h1>
<ul>
<li>
<p>Added Perl_sv_get_backrefs() to determine if an SV is a weak-referent.</p>
<p>Function either returns an SV * of type AV, which contains the set of
weakreferences which reference the passed in SV, or a simple RV * which
is the only weakref to this item.</p>
</li>
</ul>
<a name="Selected-Bug-Fixes"></a><h1>Selected Bug Fixes</h1>
<ul>
<li>
<p>A bug in regular expression patterns that could lead to segfaults and
other crashes has been fixed. This occurred only in patterns compiled
with <code class="inline"><span class="q">"/i"</span></code>
, while taking into account the current POSIX locale (this usually
means they have to be compiled within the scope of <code class="inline"><span class="q">"use locale"</span></code>
),
and there must be a string of at least 128 consecutive bytes to match.
[perl #123539]</p>
</li>
<li>
<p><code class="inline"><a class="l_k" href="functions/s.html">s///</a></code> now works on very long strings instead of dying with 'Substitution
loop'. [perl #103260] [perl #123071]</p>
</li>
<li>
<p><code class="inline"><a class="l_k" href="functions/gmtime.html">gmtime</a></code> no longer crashes with not-a-number values. [perl #123495]</p>
</li>
<li>
<p><code class="inline">\<span class="s">(</span><span class="s">)</span></code>
(reference to an empty list) and <code class="inline"><a class="l_k" href="functions/y.html">y///</a></code> with lexical $_ in scope
could do a bad write past the end of the stack. They have been fixed
to extend the stack first.</p>
</li>
<li>
<p><code class="inline"><a class="l_k" href="functions/prototype.html">prototype()</a></code> with no arguments used to read the previous item on the
stack, so <code class="inline"><a class="l_k" href="functions/print.html">print</a> <span class="q">"foo"</span><span class="cm">,</span> <a class="l_k" href="functions/prototype.html">prototype</a><span class="s">(</span><span class="s">)</span></code>
would print foo's prototype. It has
been fixed to infer $_ instead. [perl #123514]</p>
</li>
<li>
<p>Some cases of lexical state subs inside predeclared subs could crash but no
longer do.</p>
</li>
<li>
<p>Some cases of nested lexical state subs inside anonymous subs could cause
'Bizarre copy' errors or possibly even crash.</p>
</li>
<li>
<p>When trying to emit warnings, perl's default debugger (<i>perl5db.pl</i>) was
sometimes giving 'Undefined subroutine &DB::db_warn called' instead. This
bug, which started to occur in Perl 5.18, has been fixed. [perl #123553]</p>
</li>
<li>
<p>Certain syntax errors in substitutions, such as <code class="inline"><a class="l_k" href="functions/s.html">s/${<>{})//</a></code>, would
crash, and had done so since Perl 5.10. (In some cases the crash did not
start happening till 5.16.) The crash has, of course, been fixed.
[perl #123542]</p>
</li>
<li>
<p>A repeat expression like <code class="inline"><span class="n">33</span> x ~<span class="n">3</span></code>
could cause a large buffer
overflow since the new output buffer size was not correctly handled by
SvGROW(). An expression like this now properly produces a memory wrap
panic. [perl 123554]</p>
</li>
<li>
<p><code class="inline"><a class="l_k" href="functions/formline.html">formline</a><span class="s">(</span><span class="q">"@..."</span><span class="cm">,</span> <span class="q">"a"</span><span class="s">)</span><span class="sc">;</span></code>
would crash. The <code class="inline"><span class="w">FF_CHECKNL</span></code>
case in
pp_formline() didn't set the pointer used to mark the chop position,
which led to the <code class="inline"><span class="w">FF_MORE</span></code>
case crashing with a segmentation fault.
This has been fixed. [perl #123538]</p>
</li>
<li>
<p>A possible buffer overrun and crash when parsing a literal pattern during
regular expression compilation has been fixed. [perl #123604]</p>
</li>
</ul>
<a name="Acknowledgements"></a><h1>Acknowledgements</h1>
<p>Perl 5.21.8 represents approximately 4 weeks of development since Perl 5.21.7
and contains approximately 26,000 lines of changes across 750 files from 27
authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were
approximately 13,000 lines of changes to 410 .pm, .t, .c and .h files.</p>
<p>Perl continues to flourish into its third decade thanks to a vibrant community
of users and developers. The following people are known to have contributed the
improvements that became Perl 5.21.8:</p>
<p>Aaron Crane, Andreas Voegele, Chad Granum, Chris 'BinGOs' Williams, Craig A.
Berry, Daniel Dragan, David Mitchell, E. Choroba, Ed J, Father Chrysostomos,
H.Merijn Brand, Hugo van der Sanden, James E Keenan, Jarkko Hietaniemi, Karen
Etheridge, Karl Williamson, Matthew Horsfall, Max Maischein, Peter Martini,
Rafael Garcia-Suarez, Ricardo Signes, Rostislav Skudnov, Slaven Rezic, Steve
Hay, Tony Cook, Yves Orton, Ævar Arnfjörð Bjarmason.</p>
<p>The list above is almost certainly incomplete as it is automatically generated
from version control history. In particular, it does not include the names of
the (very much appreciated) contributors who reported issues to the Perl bug
tracker.</p>
<p>Many of the changes included in this version originated in the CPAN modules
included in Perl's core. We're grateful to the entire CPAN community for
helping Perl to flourish.</p>
<p>For a more complete list of all of Perl's historical contributors, please see
the <i>AUTHORS</i> file in the Perl source distribution.</p>
<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
https://rt.perl.org/ . There may also be information at
<a href="http://www.perl.org/">http://www.perl.org/</a> , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <a href="perlbug.html">perlbug</a> 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.</p>
<p>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 will 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.</p>
<a name="SEE-ALSO"></a><h1>SEE ALSO</h1>
<p>The <i>Changes</i> file for an explanation of how to view 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="#Notice">Notice</a><li><a href="#Core-Enhancements">Core Enhancements</a><ul><li><a href="#The-warnings-pragma-now-supports-warnings-outside-of-%22all%22">The warnings pragma now supports warnings outside of "all"</a><li><a href="#Non-Capturing-Regular-Expression-Flag">Non-Capturing Regular Expression Flag</a><li><a href="#prototype-with-no-arguments">prototype with no arguments</a><li><a href="#use-re-'strict'">use re 'strict'</a><li><a href="#New-%22const%22-subroutine-attribute">New "const" subroutine attribute</a></ul><li><a href="#Incompatible-Changes">Incompatible Changes</a><ul><li><a href="#sub-signatures-moved-before-attributes">sub signatures moved before attributes</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="#Documentation">Documentation</a><ul><li><a href="#New-Documentation">New Documentation</a></ul><li><a href="#Diagnostics">Diagnostics</a><ul><li><a href="#New-Diagnostics">New Diagnostics</a><li><a href="#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a></ul><li><a href="#Configuration-and-Compilation">Configuration and Compilation</a><li><a href="#Testing">Testing</a><li><a href="#Platform-Support">Platform Support</a><ul><li><a href="#Platform-Specific-Notes">Platform-Specific Notes</a></ul><li><a href="#Internal-Changes">Internal Changes</a><li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a><li><a href="#Acknowledgements">Acknowledgements</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>
</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 = 'perl5218delta';
perldoc.pageAddress = 'perl5218delta.html';
perldoc.contentPage = 1;
explorePerl.render();
explorePerl.addEvents('explore_anchor');
</script>
</body>
</html>
|