CINXE.COM
perldelta - what is new for perl v5.34.0 - Perldoc Browser
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>perldelta - what is new for perl v5.34.0 - Perldoc Browser</title> <link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser"> <link rel="canonical" href="https://perldoc.perl.org/perldelta"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" /> <style> body { background: #f4f4f5; color: #020202; } .navbar-dark { background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%); background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%); background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0); background-repeat: repeat-x; } .navbar-dark .navbar-nav .nav-link, .navbar-dark .navbar-nav .nav-link:focus { color: #fff } .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 } #wrapperlicious { margin: 0 auto; font: 0.9em 'Helvetica Neue', Helvetica, sans-serif; font-weight: normal; line-height: 1.5em; margin: 0; padding: 0; } #wrapperlicious h1 { font-size: 1.5em } #wrapperlicious h2 { font-size: 1.3em } #wrapperlicious h3 { font-size: 1.1em } #wrapperlicious h4 { font-size: 0.9em } #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3, #wrapperlicious h4, #wrapperlicious dt { color: #020202; margin-top: 1em; margin-bottom: 1em; position: relative; font-weight: bold; } #wrapperlicious a { color: inherit; text-decoration: underline } #wrapperlicious #toc { text-decoration: none } #wrapperlicious a:hover { color: #2a2a2a } #wrapperlicious a img { border: 0 } #wrapperlicious :not(pre) > code { color: inherit; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; font: 0.9em Consolas, Menlo, Monaco, monospace; padding: 0.3em; } #wrapperlicious dd { margin: 0; margin-left: 2em; } #wrapperlicious dt { color: #2a2a2a; font-weight: bold; margin-left: 0.9em; } #wrapperlicious p { margin-bottom: 1em; margin-top: 1em; } #wrapperlicious li > p { margin-bottom: 0; margin-top: 0; } #wrapperlicious pre { border: 1px solid #c1c1c1; border-radius: 3px; font: 100% Consolas, Menlo, Monaco, monospace; margin-bottom: 1em; margin-top: 1em; } #wrapperlicious pre > code { display: block; background-color: #f6f6f6; font: 0.9em Consolas, Menlo, Monaco, monospace; line-height: 1.5em; text-align: left; white-space: pre; padding: 1em; } #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul { margin-bottom: 1em; margin-top: 1em; } #wrapperlicious ul { list-style-type: square; } #wrapperlicious ul ul { margin-bottom: 0px; margin-top: 0px; } #footer { font-size: 0.8em; padding-top: 0.5em; text-align: center; } #more { display: inline; font-size: 0.8em; } #perldocdiv { background-color: #fff; border: 1px solid #c1c1c1; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; margin-left: auto; margin-right: auto; padding: 3em; padding-top: 1em; max-width: 960px; } #moduleversion { float: right } #wrapperlicious .leading-notice { font-style: italic; padding-left: 1em; margin-top: 1em; margin-bottom: 1em; } #wrapperlicious .permalink { display: none; left: -0.75em; position: absolute; padding-right: 0.25em; text-decoration: none; } #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink, #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink, #wrapperlicious dt:hover .permalink { display: block; } </style> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-KVNWBNT5FB'); gtag('config', 'UA-50555-3'); </script> </head> <body> <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <a class="navbar-brand" href="/"><img src="/images/perl_camel_30.png" width="30" height="30" class="d-inline-block align-top" alt="Perl Camel Logo"> Perldoc Browser</a> <div class="collapse navbar-collapse" id="navbarNav"> <ul class="navbar-nav mr-auto"> <li class="nav-item dropdown text-nowrap"> <a class="nav-link dropdown-toggle" href="#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.34.0</a> <div class="dropdown-menu" aria-labelledby="dropdownlink-stable"> <a class="dropdown-item" href="/perldelta">Latest</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.40.1/perldelta">5.40.1</a> <a class="dropdown-item" href="/5.40.0/perldelta">5.40.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.38.3/perldelta">5.38.3</a> <a class="dropdown-item" href="/5.38.2/perldelta">5.38.2</a> <a class="dropdown-item" href="/5.38.1/perldelta">5.38.1</a> <a class="dropdown-item" href="/5.38.0/perldelta">5.38.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.36.3/perldelta">5.36.3</a> <a class="dropdown-item" href="/5.36.2/perldelta">5.36.2</a> <a class="dropdown-item" href="/5.36.1/perldelta">5.36.1</a> <a class="dropdown-item" href="/5.36.0/perldelta">5.36.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.34.3/perldelta">5.34.3</a> <a class="dropdown-item" href="/5.34.2/perldelta">5.34.2</a> <a class="dropdown-item" href="/5.34.1/perldelta">5.34.1</a> <a class="dropdown-item active" href="/5.34.0/perldelta">5.34.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.32.1/perldelta">5.32.1</a> <a class="dropdown-item" href="/5.32.0/perldelta">5.32.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.30.3/perldelta">5.30.3</a> <a class="dropdown-item" href="/5.30.2/perldelta">5.30.2</a> <a class="dropdown-item" href="/5.30.1/perldelta">5.30.1</a> <a class="dropdown-item" href="/5.30.0/perldelta">5.30.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.28.3/perldelta">5.28.3</a> <a class="dropdown-item" href="/5.28.2/perldelta">5.28.2</a> <a class="dropdown-item" href="/5.28.1/perldelta">5.28.1</a> <a class="dropdown-item" href="/5.28.0/perldelta">5.28.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.26.3/perldelta">5.26.3</a> <a class="dropdown-item" href="/5.26.2/perldelta">5.26.2</a> <a class="dropdown-item" href="/5.26.1/perldelta">5.26.1</a> <a class="dropdown-item" href="/5.26.0/perldelta">5.26.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.24.4/perldelta">5.24.4</a> <a class="dropdown-item" href="/5.24.3/perldelta">5.24.3</a> <a class="dropdown-item" href="/5.24.2/perldelta">5.24.2</a> <a class="dropdown-item" href="/5.24.1/perldelta">5.24.1</a> <a class="dropdown-item" href="/5.24.0/perldelta">5.24.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.22.4/perldelta">5.22.4</a> <a class="dropdown-item" href="/5.22.3/perldelta">5.22.3</a> <a class="dropdown-item" href="/5.22.2/perldelta">5.22.2</a> <a class="dropdown-item" href="/5.22.1/perldelta">5.22.1</a> <a class="dropdown-item" href="/5.22.0/perldelta">5.22.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.20.3/perldelta">5.20.3</a> <a class="dropdown-item" href="/5.20.2/perldelta">5.20.2</a> <a class="dropdown-item" href="/5.20.1/perldelta">5.20.1</a> <a class="dropdown-item" href="/5.20.0/perldelta">5.20.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.18.4/perldelta">5.18.4</a> <a class="dropdown-item" href="/5.18.3/perldelta">5.18.3</a> <a class="dropdown-item" href="/5.18.2/perldelta">5.18.2</a> <a class="dropdown-item" href="/5.18.1/perldelta">5.18.1</a> <a class="dropdown-item" href="/5.18.0/perldelta">5.18.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.16.3/perldelta">5.16.3</a> <a class="dropdown-item" href="/5.16.2/perldelta">5.16.2</a> <a class="dropdown-item" href="/5.16.1/perldelta">5.16.1</a> <a class="dropdown-item" href="/5.16.0/perldelta">5.16.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.14.4/perldelta">5.14.4</a> <a class="dropdown-item" href="/5.14.3/perldelta">5.14.3</a> <a class="dropdown-item" href="/5.14.2/perldelta">5.14.2</a> <a class="dropdown-item" href="/5.14.1/perldelta">5.14.1</a> <a class="dropdown-item" href="/5.14.0/perldelta">5.14.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.12.5/perldelta">5.12.5</a> <a class="dropdown-item" href="/5.12.4/perldelta">5.12.4</a> <a class="dropdown-item" href="/5.12.3/perldelta">5.12.3</a> <a class="dropdown-item" href="/5.12.2/perldelta">5.12.2</a> <a class="dropdown-item" href="/5.12.1/perldelta">5.12.1</a> <a class="dropdown-item" href="/5.12.0/perldelta">5.12.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.10.1/perldelta">5.10.1</a> <a class="dropdown-item" href="/5.10.0/perldelta">5.10.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.8.9/perldelta">5.8.9</a> <a class="dropdown-item" href="/5.8.8/perldelta">5.8.8</a> <a class="dropdown-item" href="/5.8.7/perldelta">5.8.7</a> <a class="dropdown-item" href="/5.8.6/perldelta">5.8.6</a> <a class="dropdown-item" href="/5.8.5/perldelta">5.8.5</a> <a class="dropdown-item" href="/5.8.4/perldelta">5.8.4</a> <a class="dropdown-item" href="/5.8.3/perldelta">5.8.3</a> <a class="dropdown-item" href="/5.8.2/perldelta">5.8.2</a> <a class="dropdown-item" href="/5.8.1/perldelta">5.8.1</a> <a class="dropdown-item" href="/5.8.0/perldelta">5.8.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.6.2/perldelta">5.6.2</a> <a class="dropdown-item" href="/5.6.1/perldelta">5.6.1</a> <a class="dropdown-item" href="/5.6.0/perldelta">5.6.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.005_04/perldelta">5.005_04</a> <a class="dropdown-item" href="/5.005_03/perldelta">5.005_03</a> <a class="dropdown-item" href="/5.005_02/perldelta">5.005_02</a> <a class="dropdown-item" href="/5.005_01/perldelta">5.005_01</a> <a class="dropdown-item" href="/5.005/perldelta">5.005</a> </div> </li> <li class="nav-item dropdown text-nowrap"> <a class="nav-link dropdown-toggle" href="#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a> <div class="dropdown-menu" aria-labelledby="dropdownlink-dev"> <a class="dropdown-item" href="/blead/perldelta">blead</a> <a class="dropdown-item" href="/5.41.10/perldelta">5.41.10</a> <a class="dropdown-item" href="/5.41.9/perldelta">5.41.9</a> <a class="dropdown-item" href="/5.41.8/perldelta">5.41.8</a> <a class="dropdown-item" href="/5.41.7/perldelta">5.41.7</a> <a class="dropdown-item" href="/5.41.6/perldelta">5.41.6</a> <a class="dropdown-item" href="/5.41.5/perldelta">5.41.5</a> <a class="dropdown-item" href="/5.41.4/perldelta">5.41.4</a> <a class="dropdown-item" href="/5.41.3/perldelta">5.41.3</a> <a class="dropdown-item" href="/5.41.2/perldelta">5.41.2</a> <a class="dropdown-item" href="/5.41.1/perldelta">5.41.1</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.40.1-RC1/perldelta">5.40.1-RC1</a> <a class="dropdown-item" href="/5.40.0-RC2/perldelta">5.40.0-RC2</a> <a class="dropdown-item" href="/5.40.0-RC1/perldelta">5.40.0-RC1</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.39.10/perldelta">5.39.10</a> <a class="dropdown-item" href="/5.39.9/perldelta">5.39.9</a> <a class="dropdown-item" href="/5.39.8/perldelta">5.39.8</a> <a class="dropdown-item" href="/5.39.7/perldelta">5.39.7</a> <a class="dropdown-item" href="/5.39.6/perldelta">5.39.6</a> <a class="dropdown-item" href="/5.39.5/perldelta">5.39.5</a> <a class="dropdown-item" href="/5.39.4/perldelta">5.39.4</a> <a class="dropdown-item" href="/5.39.3/perldelta">5.39.3</a> <a class="dropdown-item" href="/5.39.2/perldelta">5.39.2</a> <a class="dropdown-item" href="/5.39.1/perldelta">5.39.1</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.38.3-RC1/perldelta">5.38.3-RC1</a> </div> </li> <li class="nav-item dropdown text-nowrap"> <a class="nav-link dropdown-toggle" href="#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a> <div class="dropdown-menu" aria-labelledby="dropdownlink-nav"> <a class="dropdown-item" href="/5.34.0/perl">Perl</a> <a class="dropdown-item" href="/5.34.0/perlintro">Intro</a> <a class="dropdown-item" href="/5.34.0/perl#Tutorials">Tutorials</a> <a class="dropdown-item" href="/5.34.0/perlfaq">FAQs</a> <a class="dropdown-item" href="/5.34.0/perl#Reference-Manual">Reference</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.34.0/perlop">Operators</a> <a class="dropdown-item" href="/5.34.0/functions">Functions</a> <a class="dropdown-item" href="/5.34.0/variables">Variables</a> <a class="dropdown-item" href="/5.34.0/modules">Modules</a> <a class="dropdown-item" href="/5.34.0/perlutil">Utilities</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.34.0/perldelta">Release Notes</a> <a class="dropdown-item" href="/5.34.0/perlcommunity">Community</a> <a class="dropdown-item" href="/5.34.0/perlhist">History</a> </div> </li> </ul> <ul class="navbar-nav"> <script> function set_expand (expand) { var perldocdiv = document.getElementById('perldocdiv'); var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width'); var expanded = (width == '' || width == 'none') ? true : false; if (expand === null) { expand = !expanded; } if ((expand && !expanded) || (!expand && expanded)) { perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px'); var button_classlist = document.getElementById('content-expand-button').classList; if (expand) { button_classlist.add('btn-light'); button_classlist.remove('btn-outline-light'); } else { button_classlist.add('btn-outline-light'); button_classlist.remove('btn-light'); } } return expand; } function toggle_expand () { var expand = set_expand(null); document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC'; } function read_expand () { return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function () { if (read_expand()) { set_expand(true); } }); } else if (read_expand()) { set_expand(true); } </script> <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-4" onclick="toggle_expand()">Expand</button> </ul> <form class="form-inline" method="get" action="/5.34.0/search"> <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search" value=""> </form> </div> </nav> <div id="wrapperlicious" class="container-fluid"> <div id="perldocdiv"> <div id="links"> <a href="/5.34.0/perldelta">perldelta</a> <div id="more"> (<a href="/5.34.0/perldelta.txt">source</a>, <a href="https://metacpan.org/pod/perldelta">CPAN</a>) </div> </div> <div class="leading-notice"> You are viewing the version of this documentation from Perl 5.34.0. <a href="/perldelta">View the latest version</a> </div> <h1><a id="toc">CONTENTS</a></h1> <ul> <li> <a class="text-decoration-none" href="#NAME">NAME</a> </li> <li> <a class="text-decoration-none" href="#DESCRIPTION">DESCRIPTION</a> </li> <li> <a class="text-decoration-none" href="#Core-Enhancements">Core Enhancements</a> <ul> <li> <a class="text-decoration-none" href="#Experimental-Try/Catch-Syntax">Experimental Try/Catch Syntax</a> </li> <li> <a class="text-decoration-none" href="#qr/%7B,n%7D/-is-now-accepted">qr/{,n}/ is now accepted</a> </li> <li> <a class="text-decoration-none" href="#Blanks-freely-allowed-within-but-adjacent-to-curly-braces">Blanks freely allowed within but adjacent to curly braces</a> </li> <li> <a class="text-decoration-none" href="#New-octal-syntax-0oddddd">New octal syntax 0oddddd</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Performance-Enhancements">Performance Enhancements</a> </li> <li> <a class="text-decoration-none" href="#Modules-and-Pragmata">Modules and Pragmata</a> <ul> <li> <a class="text-decoration-none" href="#New-Modules-and-Pragmata">New Modules and Pragmata</a> </li> <li> <a class="text-decoration-none" href="#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Documentation">Documentation</a> <ul> <li> <a class="text-decoration-none" href="#New-Documentation">New Documentation</a> <ul> <li> <a class="text-decoration-none" href="#perldocstyle">perldocstyle</a> </li> <li> <a class="text-decoration-none" href="#perlgov">perlgov</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a> <ul> <li> <a class="text-decoration-none" href="#perlapi">perlapi</a> </li> <li> <a class="text-decoration-none" href="#perlcommunity">perlcommunity</a> </li> <li> <a class="text-decoration-none" href="#perldebguts">perldebguts</a> </li> <li> <a class="text-decoration-none" href="#perldiag">perldiag</a> </li> <li> <a class="text-decoration-none" href="#perlfaq">perlfaq</a> </li> <li> <a class="text-decoration-none" href="#perlfunc">perlfunc</a> </li> <li> <a class="text-decoration-none" href="#perlgit">perlgit</a> </li> <li> <a class="text-decoration-none" href="#perlguts">perlguts</a> </li> <li> <a class="text-decoration-none" href="#perlop">perlop</a> </li> <li> <a class="text-decoration-none" href="#perlpacktut">perlpacktut</a> </li> <li> <a class="text-decoration-none" href="#perlsyn">perlsyn</a> </li> <li> <a class="text-decoration-none" href="#perlunifaq">perlunifaq</a> </li> </ul> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Diagnostics">Diagnostics</a> <ul> <li> <a class="text-decoration-none" href="#New-Diagnostics">New Diagnostics</a> <ul> <li> <a class="text-decoration-none" href="#New-Errors">New Errors</a> </li> <li> <a class="text-decoration-none" href="#New-Warnings">New Warnings</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Utility-Changes">Utility Changes</a> <ul> <li> <a class="text-decoration-none" href="#perl5db.pl-(the-debugger)">perl5db.pl (the debugger)</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Configuration-and-Compilation">Configuration and Compilation</a> </li> <li> <a class="text-decoration-none" href="#Testing">Testing</a> </li> <li> <a class="text-decoration-none" href="#Platform-Support">Platform Support</a> <ul> <li> <a class="text-decoration-none" href="#New-Platforms">New Platforms</a> </li> <li> <a class="text-decoration-none" href="#Updated-Platforms">Updated Platforms</a> </li> <li> <a class="text-decoration-none" href="#Discontinued-Platforms">Discontinued Platforms</a> </li> <li> <a class="text-decoration-none" href="#Platform-Specific-Notes">Platform-Specific Notes</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Internal-Changes">Internal Changes</a> </li> <li> <a class="text-decoration-none" href="#Selected-Bug-Fixes">Selected Bug Fixes</a> </li> <li> <a class="text-decoration-none" href="#Known-Problems">Known Problems</a> </li> <li> <a class="text-decoration-none" href="#Errata-From-Previous-Releases">Errata From Previous Releases</a> </li> <li> <a class="text-decoration-none" href="#Obituary">Obituary</a> </li> <li> <a class="text-decoration-none" href="#Acknowledgements">Acknowledgements</a> </li> <li> <a class="text-decoration-none" href="#Reporting-Bugs">Reporting Bugs</a> </li> <li> <a class="text-decoration-none" href="#Give-Thanks">Give Thanks</a> </li> <li> <a class="text-decoration-none" href="#SEE-ALSO">SEE ALSO</a> </li> </ul> <h1 id="NAME"><a class="permalink" href="#NAME">#</a>NAME</h1> <p>perldelta - what is new for perl v5.34.0</p> <h1 id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">#</a>DESCRIPTION</h1> <p>This document describes differences between the 5.32.0 release and the 5.34.0 release.</p> <p>If you are upgrading from an earlier release such as 5.30.0, first read <a href="/5.34.0/perl5320delta">perl5320delta</a>, which describes differences between 5.30.0 and 5.32.0.</p> <h1 id="Core-Enhancements"><a class="permalink" href="#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1> <h2 id="Experimental-Try/Catch-Syntax"><a class="permalink" href="#Experimental-Try/Catch-Syntax">#</a><a id="Experimental"></a><a id="Experimental-Try-Catch-Syntax"></a>Experimental Try/Catch Syntax</h2> <p>An initial experimental attempt at providing <code>try</code>/<code>catch</code> notation has been added.</p> <pre><code>use feature 'try'; try { a_function(); } catch ($e) { warn "An error occurred: $e"; }</code></pre> <p>For more information, see <a href="/5.34.0/perlsyn#Try-Catch-Exception-Handling">"Try Catch Exception Handling" in perlsyn</a>.</p> <h2 id="qr/{,n}/-is-now-accepted"><a class="permalink" href="#qr/%7B,n%7D/-is-now-accepted">#</a><a id="qr"></a><a id="qr-n-is-now-accepted"></a><code>qr/{,n}/</code> is now accepted</h2> <p>An empty lower bound is now accepted for regular expression quantifiers, like <code>{,3}</code>.</p> <h2 id="Blanks-freely-allowed-within-but-adjacent-to-curly-braces"><a class="permalink" href="#Blanks-freely-allowed-within-but-adjacent-to-curly-braces">#</a><a id="Blanks"></a>Blanks freely allowed within but adjacent to curly braces</h2> <p>(in double-quotish contexts and regular expression patterns)</p> <p>This means you can write things like <span style="white-space: nowrap;"><code>\x{ FFFC }</code></span> if you like. This applies to all such constructs, namely <code>\b{}</code>, <code>\g{}</code>, <code>\k{}</code>, <code>\N{}</code>, <code>\o{}</code>, and <code>\x{}</code>; as well as the regular expression quantifier <code>{<i>m</i>,<i>n</i>}</code>. <code>\p{}</code> and <code>\P{}</code> retain their already-existing, even looser, rules mandated by the Unicode standard (see <a href="/5.34.0/perluniprops#Properties-accessible-through-%5Cp%7B%7D-and-%5CP%7B%7D">"Properties accessible through \p{} and \P{}" in perluniprops</a>).</p> <p>This ability is in effect regardless of the presence of the <code>/x</code> regular expression pattern modifier.</p> <p>Additionally, the comma in a regular expression braced quantifier may have blanks (tabs or spaces) before and/or after the comma, like <span style="white-space: nowrap;"><code>qr/a{ 5, 7 }/</code></span>.</p> <h2 id="New-octal-syntax-0oddddd"><a class="permalink" href="#New-octal-syntax-0oddddd">#</a><a id="New"></a>New octal syntax <code>0o<i>ddddd</i></code></h2> <p>It is now possible to specify octal literals with <code>0o</code> prefixes, as in <code>0o123_456</code>, parallel to the existing construct to specify hexadecimal literal <code>0x<i>ddddd</i></code> and binary literal <code>0b<i>ddddd</i></code>. Also, the builtin <code>oct()</code> function now accepts this new syntax.</p> <p>See <a href="/5.34.0/perldata#Scalar-value-constructors">"Scalar value constructors" in perldata</a> and <a href="/5.34.0/perlfunc#oct-EXPR">"oct EXPR" in perlfunc</a>.</p> <h1 id="Performance-Enhancements"><a class="permalink" href="#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1> <ul> <li><p>Fix a memory leak in RegEx [<a href="https://github.com/Perl/perl5/issues/18604">GH #18604</a>]</p> </li> </ul> <h1 id="Modules-and-Pragmata"><a class="permalink" href="#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1> <h2 id="New-Modules-and-Pragmata"><a class="permalink" href="#New-Modules-and-Pragmata">#</a><a id="New1"></a>New Modules and Pragmata</h2> <ul> <li><p><a href="/5.34.0/ExtUtils::PL2Bat">ExtUtils::PL2Bat</a> 0.004 has been added to the Perl core.</p> <p>This module is a generalization of the <code>pl2bat</code> script. It being a script has led to at least two forks of this code; this module will unify them under one implementation with tests.</p> </li> </ul> <h2 id="Updated-Modules-and-Pragmata"><a class="permalink" href="#Updated-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated Modules and Pragmata</h2> <ul> <li><p><a href="/5.34.0/Archive::Tar">Archive::Tar</a> has been upgraded from version 2.36 to 2.38.</p> </li> <li><p><a href="/5.34.0/autodie">autodie</a> has been upgraded from version 2.32 to 2.34.</p> </li> <li><p><a href="/5.34.0/B">B</a> has been upgraded from version 1.80 to 1.82.</p> </li> <li><p><a href="/5.34.0/B::Deparse">B::Deparse</a> has been upgraded from version 1.54 to 1.56.</p> </li> <li><p><a href="/5.34.0/bytes">bytes</a> has been upgraded from version 1.07 to 1.08.</p> </li> <li><p><a href="/5.34.0/Carp">Carp</a> has been upgraded from version 1.50 to 1.52.</p> </li> <li><p><a href="/5.34.0/Compress::Raw::Bzip2">Compress::Raw::Bzip2</a> has been upgraded from version 2.093 to 2.101.</p> </li> <li><p><a href="/5.34.0/Compress::Raw::Zlib">Compress::Raw::Zlib</a> has been upgraded from version 2.093 to 2.101.</p> </li> <li><p><a href="/5.34.0/Config::Perl::V">Config::Perl::V</a> has been upgraded from version 0.32 to 0.33.</p> </li> <li><p><a href="/5.34.0/CPAN">CPAN</a> has been upgraded from version 2.27 to 2.28.</p> </li> <li><p><a href="/5.34.0/Data::Dumper">Data::Dumper</a> has been upgraded from version 2.174 to 2.179.</p> </li> <li><p><a href="/5.34.0/DB">DB</a> has been upgraded from version 1.58 to 1.59.</p> </li> <li><p><a href="/5.34.0/DB_File">DB_File</a> has been upgraded from version 1.853 to 1.855.</p> </li> <li><p><a href="/5.34.0/Devel::Peek">Devel::Peek</a> has been upgraded from version 1.28 to 1.30.</p> </li> <li><p><a href="/5.34.0/Devel::PPPort">Devel::PPPort</a> has been upgraded from version 3.57 to 3.62.</p> <p>New <code>PERL_VERSION_*</code> comparison macros are now available.</p> <p><code>ppport.h --api-info</code> no longer includes non-API info unless that is the only match</p> </li> <li><p><a href="/5.34.0/Digest">Digest</a> has been upgraded from version 1.17_01 to 1.19.</p> </li> <li><p><a href="/5.34.0/Digest::MD5">Digest::MD5</a> has been upgraded from version 2.55_01 to 2.58.</p> </li> <li><p><a href="/5.34.0/DynaLoader">DynaLoader</a> has been upgraded from version 1.47 to 1.50.</p> </li> <li><p><a href="/5.34.0/Encode">Encode</a> has been upgraded from version 3.06 to 3.08.</p> </li> <li><p><a href="/5.34.0/Env">Env</a> has been upgraded from version 1.04 to 1.05.</p> </li> <li><p><a href="/5.34.0/Errno">Errno</a> has been upgraded from version 1.30 to 1.33.</p> </li> <li><p><a href="/5.34.0/experimental">experimental</a> has been upgraded from version 0.020 to 0.024.</p> </li> <li><p><a href="/5.34.0/Exporter">Exporter</a> has been upgraded from version 5.74 to 5.76.</p> </li> <li><p><a href="/5.34.0/ExtUtils::CBuilder">ExtUtils::CBuilder</a> has been upgraded from version 0.280234 to 0.280236.</p> </li> <li><p><a href="/5.34.0/ExtUtils::Install">ExtUtils::Install</a> has been upgraded from version 2.14 to 2.20.</p> </li> <li><p><a href="/5.34.0/ExtUtils::MakeMaker">ExtUtils::MakeMaker</a> has been upgraded from version 7.44 to 7.62.</p> </li> <li><p><a href="/5.34.0/ExtUtils::Manifest">ExtUtils::Manifest</a> has been upgraded from version 1.72 to 1.73.</p> </li> <li><p><a href="/5.34.0/ExtUtils::Miniperl">ExtUtils::Miniperl</a> has been upgraded from version 1.09 to 1.10.</p> </li> <li><p><a href="/5.34.0/ExtUtils::ParseXS">ExtUtils::ParseXS</a> has been upgraded from version 3.40 to 3.43.</p> </li> <li><p><a href="/5.34.0/ExtUtils::Typemaps">ExtUtils::Typemaps</a> has been upgraded from version 3.38 to 3.43.</p> </li> <li><p><a href="/5.34.0/Fcntl">Fcntl</a> has been upgraded from version 1.13 to 1.14.</p> </li> <li><p><a href="/5.34.0/feature">feature</a> has been upgraded from version 1.58 to 1.64.</p> <p>Added the default enabled <code>bareword_filehandles</code> feature.</p> <p>A new <a href="/5.34.0/feature#The-%27multidimensional%27-feature">multidimensional</a> feature has been added, which is enabled by default but allows turning off <a href="/5.34.0/perldata#Multi-dimensional-array-emulation">multi-dimensional array emulation</a>.</p> </li> <li><p><a href="/5.34.0/File::Copy">File::Copy</a> has been upgraded from version 2.34 to 2.35.</p> </li> <li><p><a href="/5.34.0/File::Fetch">File::Fetch</a> has been upgraded from version 0.56 to 1.00.</p> </li> <li><p><a href="/5.34.0/File::Find">File::Find</a> has been upgraded from version 1.37 to 1.39.</p> </li> <li><p><a href="/5.34.0/File::Path">File::Path</a> has been upgraded from version 2.16 to 2.18.</p> </li> <li><p><a href="/5.34.0/File::Spec">File::Spec</a> has been upgraded from version 3.78 to 3.80.</p> </li> <li><p><a href="/5.34.0/File::Temp">File::Temp</a> has been upgraded from version 0.2309 to 0.2311.</p> </li> <li><p><a href="/5.34.0/Filter::Util::Call">Filter::Util::Call</a> has been upgraded from version 1.59 to 1.60.</p> </li> <li><p><a href="/5.34.0/FindBin">FindBin</a> has been upgraded from version 1.51 to 1.52.</p> </li> <li><p><a href="/5.34.0/GDBM_File">GDBM_File</a> has been upgraded from version 1.18 to 1.19.</p> <p>New functions and compatibility for newer versions of GDBM. [<a href="https://github.com/Perl/perl5/pull/18435">GH #18435</a>]</p> </li> <li><p><a href="/5.34.0/Getopt::Long">Getopt::Long</a> has been upgraded from version 2.51 to 2.52.</p> </li> <li><p><a href="/5.34.0/Getopt::Std">Getopt::Std</a> has been upgraded from version 1.12 to 1.13.</p> </li> <li><p><a href="/5.34.0/Hash::Util">Hash::Util</a> has been upgraded from version 0.23 to 0.25.</p> </li> <li><p><a href="/5.34.0/Hash::Util::FieldHash">Hash::Util::FieldHash</a> has been upgraded from version 1.20 to 1.21.</p> </li> <li><p><a href="/5.34.0/I18N::LangTags">I18N::LangTags</a> has been upgraded from version 0.44 to 0.45.</p> </li> <li><p><a href="/5.34.0/if">if</a> has been upgraded from version 0.0608 to 0.0609.</p> </li> <li><p><a href="/5.34.0/IO">IO</a> has been upgraded from version 1.43 to 1.46.</p> <p>IO::Socket now stores error messages in <code>$IO::Socket::errstr</code>, in addition to in <code>$@</code>.</p> <p>The <code>error</code> method now reports the error state for both the input and output streams for sockets and character devices. Similarly <code>clearerr</code> now clears the error state for both streams.</p> <p>A spurious error reported for regular file handles has been fixed in <a href="/5.34.0/IO::Handle">IO::Handle</a>. [<a href="https://github.com/Perl/perl5/issues/18019">GH #18019</a>]</p> </li> <li><p>IO-Compress has been upgraded from version 2.093 to 2.102.</p> <p>bin/zipdetails version 2.02</p> </li> <li><p><a href="/5.34.0/IO::Socket::IP">IO::Socket::IP</a> has been upgraded from version 0.39 to 0.41.</p> </li> <li><p><a href="/5.34.0/IO::Zlib">IO::Zlib</a> has been upgraded from version 1.10 to 1.11.</p> </li> <li><p><a href="/5.34.0/IPC::SysV">IPC::SysV</a> has been upgraded from version 2.07 to 2.09.</p> </li> <li><p><a href="/5.34.0/JSON::PP">JSON::PP</a> has been upgraded from version 4.04 to 4.06.</p> </li> <li><p>The libnet distribution has been upgraded from version 3.11 to 3.13.</p> </li> <li><p><a href="/5.34.0/locale">locale</a> has been upgraded from version 1.09 to 1.10.</p> </li> <li><p><a href="/5.34.0/Math::Complex">Math::Complex</a> has been upgraded from version 1.5901 to 1.5902.</p> </li> <li><p><a href="/5.34.0/MIME::Base64">MIME::Base64</a> has been upgraded from version 3.15 to 3.16.</p> </li> <li><p><a href="/5.34.0/Module::CoreList">Module::CoreList</a> has been upgraded from version 5.20200620 to 5.20210520.</p> </li> <li><p><a href="/5.34.0/Module::Load">Module::Load</a> has been upgraded from version 0.34 to 0.36.</p> </li> <li><p><a href="/5.34.0/Module::Load::Conditional">Module::Load::Conditional</a> has been upgraded from version 0.70 to 0.74.</p> </li> <li><p><a href="/5.34.0/mro">mro</a> has been upgraded from version 1.23 to 1.25_001.</p> </li> <li><p><a href="/5.34.0/Net::Ping">Net::Ping</a> has been upgraded from version 2.72 to 2.74.</p> </li> <li><p><a href="/5.34.0/NEXT">NEXT</a> has been upgraded from version 0.67_01 to 0.68.</p> </li> <li><p><a href="/5.34.0/ODBM_File">ODBM_File</a> has been upgraded from version 1.16 to 1.17.</p> </li> <li><p><a href="/5.34.0/Opcode">Opcode</a> has been upgraded from version 1.47 to 1.50.</p> </li> <li><p><a href="/5.34.0/overload">overload</a> has been upgraded from version 1.31 to 1.33.</p> </li> <li><p><a href="/5.34.0/perlfaq">perlfaq</a> has been upgraded from version 5.20200523 to 5.20210411.</p> </li> <li><p><a href="/5.34.0/PerlIO::encoding">PerlIO::encoding</a> has been upgraded from version 0.28 to 0.30.</p> </li> <li><p><a href="/5.34.0/PerlIO::mmap">PerlIO::mmap</a> has been upgraded from version 0.016 to 0.017.</p> </li> <li><p><a href="/5.34.0/PerlIO::scalar">PerlIO::scalar</a> has been upgraded from version 0.30 to 0.31.</p> </li> <li><p><a href="/5.34.0/PerlIO::via::QuotedPrint">PerlIO::via::QuotedPrint</a> has been upgraded from version 0.08 to 0.09.</p> </li> <li><p><a href="/5.34.0/Pod::Checker">Pod::Checker</a> has been upgraded from version 1.73 to 1.74.</p> </li> <li><p><a href="/5.34.0/Pod::Html">Pod::Html</a> has been upgraded from version 1.25 to 1.27.</p> </li> <li><p><a href="/5.34.0/Pod::Simple">Pod::Simple</a> has been upgraded from version 3.40 to 3.42.</p> </li> <li><p><a href="/5.34.0/Pod::Usage">Pod::Usage</a> has been upgraded from version 1.69 to 2.01.</p> </li> <li><p><a href="/5.34.0/POSIX">POSIX</a> has been upgraded from version 1.94 to 1.97.</p> <p>POSIX::signbit() behaviour has been improved. [<a href="https://github.com/Perl/perl5/pull/18441">GH #18441</a>]</p> <p>Documentation for <code>asctime</code> clarifies that the result is always in English. (Use <code>strftime</code> for a localized result.)</p> </li> <li><p><a href="/5.34.0/re">re</a> has been upgraded from version 0.40 to 0.41.</p> <p>(See under <a href="#Internal-Changes">"Internal Changes"</a> for more information.)</p> </li> <li><p><a href="/5.34.0/Safe">Safe</a> has been upgraded from version 2.41 to 2.43.</p> </li> <li><p><a href="/5.34.0/Socket">Socket</a> has been upgraded from version 2.029 to 2.031.</p> </li> <li><p><a href="/5.34.0/Storable">Storable</a> has been upgraded from version 3.21 to 3.23.</p> </li> <li><p><a href="/5.34.0/strict">strict</a> has been upgraded from version 1.11 to 1.12.</p> </li> <li><p><a href="/5.34.0/subs">subs</a> has been upgraded from version 1.03 to 1.04.</p> </li> <li><p><a href="/5.34.0/Symbol">Symbol</a> has been upgraded from version 1.08 to 1.09.</p> </li> <li><p><a href="/5.34.0/Test::Harness">Test::Harness</a> has been upgraded from version 3.42 to 3.43.</p> </li> <li><p><a href="/5.34.0/Test::Simple">Test::Simple</a> has been upgraded from version 1.302175 to 1.302183.</p> </li> <li><p><a href="/5.34.0/Text::Balanced">Text::Balanced</a> has been upgraded from version 2.03 to 2.04.</p> </li> <li><p><a href="/5.34.0/threads">threads</a> has been upgraded from version 2.25 to 2.26.</p> </li> <li><p><a href="/5.34.0/threads::shared">threads::shared</a> has been upgraded from version 1.61 to 1.62.</p> </li> <li><p><a href="/5.34.0/Tie::RefHash">Tie::RefHash</a> has been upgraded from version 1.39 to 1.40.</p> </li> <li><p><a href="/5.34.0/Time::HiRes">Time::HiRes</a> has been upgraded from version 1.9764 to 1.9767.</p> </li> <li><p><a href="/5.34.0/Time::Local">Time::Local</a> has been upgraded from version 1.28 to 1.30.</p> </li> <li><p><a href="/5.34.0/Unicode::Collate">Unicode::Collate</a> has been upgraded from version 1.27 to 1.29.</p> </li> <li><p><a href="/5.34.0/Unicode::Normalize">Unicode::Normalize</a> has been upgraded from version 1.27 to 1.28.</p> </li> <li><p><a href="/5.34.0/utf8">utf8</a> has been upgraded from version 1.22 to 1.24.</p> </li> <li><p><a href="/5.34.0/version">version</a> has been upgraded from version 0.9924 to 0.9928.</p> </li> <li><p><a href="/5.34.0/warnings">warnings</a> has been upgraded from version 1.47 to 1.51.</p> </li> <li><p><a href="/5.34.0/Win32">Win32</a> has been upgraded from version 0.53 to 0.57.</p> <p>Fix calling convention for <code>PFNRegGetValueA</code>.</p> <p>Added <code>Win32::IsSymlinkCreationAllowed()</code>, <code>Win32::IsDeveloperModeEnabled()</code>, and <code>Win32::GetProcessPrivileges()</code>.</p> <p>Removed old code for versions before Windows 2000.</p> </li> <li><p><a href="/5.34.0/XS::APItest">XS::APItest</a> has been upgraded from version 1.09 to 1.16.</p> </li> <li><p><a href="/5.34.0/XS::Typemap">XS::Typemap</a> has been upgraded from version 0.17 to 0.18.</p> </li> </ul> <h1 id="Documentation"><a class="permalink" href="#Documentation">#</a>Documentation</h1> <h2 id="New-Documentation"><a class="permalink" href="#New-Documentation">#</a><a id="New2"></a>New Documentation</h2> <h3 id="perldocstyle"><a class="permalink" href="#perldocstyle">#</a><a href="/5.34.0/perldocstyle">perldocstyle</a></h3> <p>This document is a guide for the authorship and maintenance of the documentation that ships with Perl.</p> <h3 id="perlgov"><a class="permalink" href="#perlgov">#</a><a href="/5.34.0/perlgov">perlgov</a></h3> <p>This document describes the goals, scope, system, and rules for Perl's new governance model.</p> <p>Other pod files, most notably <a href="/5.34.0/perlpolicy">perlpolicy</a>, were amended to reflect its adoption.</p> <h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="#Changes-to-Existing-Documentation">#</a><a id="Changes"></a>Changes to Existing Documentation</h2> <p>We have attempted to update the documentation to reflect the changes listed in this document. If you find any we have missed, open an issue at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p> <p>Additionally, the following selected changes have been made:</p> <ul> <li><p><a href="/5.34.0/perlapi">perlapi</a>, <a href="/5.34.0/perlguts">perlguts</a>, <a href="/5.34.0/perlxs">perlxs</a>, and <a href="/5.34.0/perlxstut">perlxstut</a> now prefer <code>SvPVbyte</code> over <code>SvPV</code>.</p> </li> <li><p>References to <b>Pumpking</b> have been replaced with a more accurate term or <b>Steering Council</b> where appropriate.</p> </li> <li><p><b>The Perl Steering Council</b> is now the fallback contact for security issues.</p> </li> </ul> <h3 id="perlapi"><a class="permalink" href="#perlapi">#</a><a href="/5.34.0/perlapi">perlapi</a></h3> <ul> <li><p>Efforts continue in improving the presentation of this document, and to document more API elements.</p> </li> </ul> <h3 id="perlcommunity"><a class="permalink" href="#perlcommunity">#</a><a href="/5.34.0/perlcommunity">perlcommunity</a></h3> <ul> <li><p>The freenode IRC URL has been updated.</p> </li> </ul> <h3 id="perldebguts"><a class="permalink" href="#perldebguts">#</a><a href="/5.34.0/perldebguts">perldebguts</a></h3> <ul> <li><p>Corrected the description of the scalar <code>${"_<$filename"}</code> variables.</p> </li> </ul> <h3 id="perldiag"><a class="permalink" href="#perldiag">#</a><a href="/5.34.0/perldiag">perldiag</a></h3> <ul> <li><p>Now documents additional examples of "not imported" warnings.</p> </li> </ul> <h3 id="perlfaq"><a class="permalink" href="#perlfaq">#</a><a href="/5.34.0/perlfaq">perlfaq</a></h3> <ul> <li><p>The Perl FAQ was updated to CPAN version 5.20201107 with minor improvements.</p> </li> </ul> <h3 id="perlfunc"><a class="permalink" href="#perlfunc">#</a><a href="/5.34.0/perlfunc">perlfunc</a></h3> <ul> <li><p><a href="/5.34.0/perlfunc#my">my()</a> and <a href="/5.34.0/perlfunc#state">state()</a> now explicitly warn the reader that lexical variables should typically not be redeclared within the same scope or statement. [<a href="https://github.com/Perl/perl5/issues/18389">GH #18389</a>]</p> </li> <li><p>The <a href="/5.34.0/perlfunc#localtime">localtime</a> entry has been improved and now also states that the result of the function is always in English.</p> </li> <li><p><a href="/5.34.0/perlfunc#msgsnd">msgsnd()</a> documented a length field included in the packed <code>MSG</code> parameter to <code>msgsnd()</code>, but there was no such field. <code>MSG</code> contains only the type and the message content.</p> </li> <li><p>Better explanation of what happens when <code>sleep</code> is called with a zero or negative value.</p> </li> <li><p>Simplify the <code>split()</code> documentation by removing the <code>join()</code>s from the examples [<a href="https://github.com/Perl/perl5/issues/18676">GH #18676</a>]</p> </li> </ul> <h3 id="perlgit"><a class="permalink" href="#perlgit">#</a><a href="/5.34.0/perlgit">perlgit</a></h3> <ul> <li><p>document how to create a remote-tracking branch for every PR</p> </li> <li><p>document how to get a PR as a local branch</p> </li> </ul> <h3 id="perlguts"><a class="permalink" href="#perlguts">#</a><a href="/5.34.0/perlguts">perlguts</a></h3> <ul> <li><p><a href="/5.34.0/perlguts">perlguts</a> now explains in greater detail the need to consult <code>SvUTF8</code> when calling <code>SvPV</code> (or variants). A new "How do I pass a Perl string to a C library?" section in the same document discusses when to use which style of macro to read an SV's string value.</p> </li> <li><p>Corrected <code>my_rpeep</code> example in perlguts.</p> </li> <li><p>A section has been added on the formatted printing of special sizes.</p> </li> </ul> <h3 id="perlop"><a class="permalink" href="#perlop">#</a><a href="/5.34.0/perlop">perlop</a></h3> <ul> <li><p>The <code><></code> and <code><<>></code> operators are commonly referred to as the diamond and double diamond operators respectively, but that wasn't mentioned previously in their documentation.</p> </li> <li><p>Document range op behavior change.</p> </li> </ul> <h3 id="perlpacktut"><a class="permalink" href="#perlpacktut">#</a><a href="/5.34.0/perlpacktut">perlpacktut</a></h3> <ul> <li><p>Incorrect variables used in an example have been fixed.</p> </li> </ul> <h3 id="perlsyn"><a class="permalink" href="#perlsyn">#</a><a href="/5.34.0/perlsyn">perlsyn</a></h3> <ul> <li><p>Document that caller() does not see try{} blocks</p> </li> <li><p>A new example shows how a lexical <code>my</code> variable can be declared during the initialization of a <code>for</code> loop.</p> </li> </ul> <h3 id="perlunifaq"><a class="permalink" href="#perlunifaq">#</a><a href="/5.34.0/perlunifaq">perlunifaq</a></h3> <ul> <li><p>Fix description of what Perl does with unencoded strings</p> </li> </ul> <h1 id="Diagnostics"><a class="permalink" href="#Diagnostics">#</a>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="/5.34.0/perldiag">perldiag</a>.</p> <h2 id="New-Diagnostics"><a class="permalink" href="#New-Diagnostics">#</a><a id="New3"></a>New Diagnostics</h2> <h3 id="New-Errors"><a class="permalink" href="#New-Errors">#</a><a id="New4"></a>New Errors</h3> <ul> <li><p><a href="/5.34.0/perldiag#Bareword-filehandle-%22%25s%22-not-allowed-under-%27no-feature-%22bareword_filehandles%22%27">Bareword filehandle "%s" not allowed under 'no feature "bareword_filehandles"'</a></p> <p>This accompanies the new <a href="/5.34.0/feature#The-%27bareword_filehandles%27-feature.">bareword_filehandles</a> feature.</p> </li> <li><p><a href="/5.34.0/perldiag#Multidimensional-hash-lookup-is-disabled">Multidimensional hash lookup is disabled</a></p> <p>This accompanies the new <a href="/5.34.0/feature#The-%27multidimensional%27-feature">multidimensional</a> feature.</p> </li> </ul> <h3 id="New-Warnings"><a class="permalink" href="#New-Warnings">#</a><a id="New5"></a>New Warnings</h3> <ul> <li><p><a href="/5.34.0/perldiag#Wide-character-in-%25s">Wide character in setenv key (encoding to utf8)</a></p> <p>Attempts to put wide characters into environment variable keys via <code>%ENV</code> now provoke this warning.</p> </li> </ul> <h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="#Changes-to-Existing-Diagnostics">#</a><a id="Changes1"></a>Changes to Existing Diagnostics</h2> <ul> <li><p><a href="/5.34.0/perldiag#Error-%25s-in-expansion-of-%25s">Error %s in expansion of %s</a></p> <p>An error was encountered in handling a user-defined property (<a href="/5.34.0/perlunicode#User-Defined-Character-Properties">"User-Defined Character Properties" in perlunicode</a>). These are programmer written subroutines, hence subject to errors that may prevent them from compiling or running.</p> </li> <li><p><a href="/5.34.0/perldiag#Infinite-recursion-in-user-defined-property">Infinite recursion in user-defined property</a></p> <p>A user-defined property (<a href="/5.34.0/perlunicode#User-Defined-Character-Properties">"User-Defined Character Properties" in perlunicode</a>) can depend on the definitions of other user-defined properties. If the chain of dependencies leads back to this property, infinite recursion would occur, were it not for the check that raised this error.</p> </li> <li><p><a href="/5.34.0/perldiag#Timeout-waiting-for-another-thread-to-define-%5Cp%7B%25s%7D">Timeout waiting for another thread to define \p{%s}</a></p> <p>The first time a user-defined property (<a href="/5.34.0/perlunicode#User-Defined-Character-Properties">"User-Defined Character Properties" in perlunicode</a>) is used, its definition is looked up and converted into an internal form for more efficient handling in subsequent uses. There could be a race if two or more threads tried to do this processing nearly simultaneously.</p> </li> <li><p><a href="/5.34.0/perldiag#Unknown-user-defined-property-name-%5Cp%7B%25s%7D">Unknown user-defined property name \p{%s}</a></p> <p>You specified to use a property within the <code>\p{...}</code> which was a syntactically valid user-defined property, but no definition was found for it</p> </li> <li><p><a href="/5.34.0/perldiag#Too-few-arguments-for-subroutine-%27%25s%27-(got-%25d%3B-expected-%25d)">Too few arguments for subroutine '%s' (got %d; expected %d)</a></p> <p>Subroutine argument-count mismatch errors now include the number of given and expected arguments.</p> </li> <li><p><a href="/5.34.0/perldiag#Too-many-arguments-for-subroutine-%27%25s%27-(got-%25d%3B-expected-%25d)">Too many arguments for subroutine '%s' (got %d; expected %d)</a></p> <p>Subroutine argument-count mismatch errors now include the number of given and expected arguments.</p> </li> <li><p><a href="/5.34.0/perldiag#Lost-precision-when-%25s-%25f-by-1">Lost precision when %s %f by 1</a></p> <p>This warning was only issued for positive too-large values when incrementing, and only for negative ones when decrementing. It is now issued for both positive or negative too-large values. [<a href="https://github.com/Perl/perl5/issues/18333">GH #18333</a>]</p> </li> <li><p><a href="/5.34.0/perldiag#%5CK-not-permitted-in-lookahead%2Flookbehind-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">\K not permitted in lookahead/lookbehind in regex; marked by <-- HERE in m/%s/</a></p> <p>This error was incorrectly produced in some cases involving nested lookarounds. This has been fixed. [<a href="https://github.com/Perl/perl5/issues/18123">GH #18123</a>]</p> </li> <li><p><a href="/5.34.0/perldiag#Use-of-uninitialized-value%25s">Use of uninitialized value%s</a></p> <p>This warning may now include the array or hash index when the uninitialized value is the result of an element not found. This will only happen if the index is a simple non-magical variable.</p> </li> </ul> <h1 id="Utility-Changes"><a class="permalink" href="#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1> <h2 id="perl5db.pl-(the-debugger)"><a class="permalink" href="#perl5db.pl-(the-debugger)">#</a><a id="perl5db"></a><a id="perl5db.pl-the-debugger"></a><a href="/5.34.0/perl5db.pl">perl5db.pl</a> (the debugger)</h2> <ul> <li><p>New option: <code>HistItemMinLength</code></p> <p>This option controls the minimum length a command must be to get stored in history. Traditionally, this has been fixed at 2. Changes to the debugger are often perilous, and new bugs should be reported so the debugger can be debugged.</p> </li> <li><p>Fix to <code>i</code> and <code>l</code> commands</p> <p>The <code>i $var</code> and <code>l $var</code> commands work again with lexical variables.</p> </li> </ul> <h1 id="Configuration-and-Compilation"><a class="permalink" href="#Configuration-and-Compilation">#</a><a id="Configuration"></a>Configuration and Compilation</h1> <ul> <li><p>Prevented incpath to spill into libpth</p> </li> <li><p>Use realpath if available. (This might catch more duplicate paths.)</p> </li> <li><p>Only include real existing paths.</p> </li> <li><p>Filter inc paths out of libpth.</p> </li> <li><p>stadtx hash support has been removed</p> <p>stadtx support has been entirely removed. Previously, it could be requested with <code>PERL_HASH_FUNC_STADTX</code>, and was default in 64-bit builds. It has been replaced with SipHash. SipHash has been more rigorously reviewed than stadtx.</p> </li> <li><p>Configure</p> <p>A new probe checks for buggy libc implementations of the <code>gcvt</code>/<code>qgcvt</code> functions. [<a href="https://github.com/Perl/perl5/issues/18170">GH #18170</a>]</p> </li> <li><p><code>-Dusedefaultstrict</code></p> <p>Perl can now be built with <a href="/5.34.0/strict">strict</a> on by default (using the configuration option <code>-Dusedefaultstrict</code>.</p> <p>These strict defaults do not apply when <code>perl</code> is run via <code>-e</code> or <code>-E</code>.</p> <p>This setting provides a diagnostic mechanism intended for development purposes only and is thus undefined by default.</p> </li> <li><p>The minimum supported Bison version is now 2.4, and the maximum is 3.7.</p> </li> <li><p>Newer 64-bit versions of the Intel C/C++ compiler are now recognised and have the correct flags set.</p> </li> <li><p>We now trap SIGBUS when <i>Configure</i> checks for <code>va_copy</code>.</p> <p>On several systems the attempt to determine if we need <code>va_copy</code> or similar results in a SIGBUS instead of the expected SIGSEGV, which previously caused a core dump.</p> <p>[<a href="https://github.com/Perl/perl5/issues/18148">GH #18148</a>]</p> </li> </ul> <h1 id="Testing"><a class="permalink" href="#Testing">#</a>Testing</h1> <p>Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:</p> <ul> <li><p>Split Config-dependent tests in <i>t/opbasic/arith.t</i> to <i>t/op/arith2.t</i></p> </li> <li><p><i>t/re/opt.t</i> was added, providing a test harness for regexp optimization. [<a href="https://github.com/Perl/perl5/pull/18213">GH #18213</a>]</p> </li> <li><p>A workaround for CPAN distributions needing dot in <code>@INC</code> has been removed [<a href="https://github.com/Perl/perl5/pull/18394">GH #18394</a>]. All distributions that previously required the workaround have now been adapted.</p> </li> <li><p>When testing in parallel on many-core platforms, you can now cause the test suite to finish somewhat earlier, but with less logical ordering of the tests, by setting</p> <pre><code class="plaintext">PERL_TEST_HARNESS_ASAP=1</code></pre> <p>while running the test suite.</p> </li> </ul> <h1 id="Platform-Support"><a class="permalink" href="#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1> <h2 id="New-Platforms"><a class="permalink" href="#New-Platforms">#</a><a id="New6"></a>New Platforms</h2> <dl> <dt id="9front"><a class="permalink" href="#9front">#</a><a id="front"></a>9front</dt> <dd> <p>Allow building Perl on i386 9front systems (a fork of plan9).</p> </dd> </dl> <h2 id="Updated-Platforms"><a class="permalink" href="#Updated-Platforms">#</a><a id="Updated1"></a>Updated Platforms</h2> <dl> <dt id="Plan9"><a class="permalink" href="#Plan9">#</a>Plan9</dt> <dd> <p>Improve support for Plan9 on i386 platforms.</p> </dd> <dt id="MacOS-(Darwin)"><a class="permalink" href="#MacOS-(Darwin)">#</a><a id="MacOS"></a><a id="MacOS-Darwin"></a>MacOS (Darwin)</dt> <dd> <p>The hints file for darwin has been updated to handle future MacOS versions beyond 10. [<a href="https://github.com/Perl/perl5/issues/17946">GH #17946</a>]</p> </dd> </dl> <h2 id="Discontinued-Platforms"><a class="permalink" href="#Discontinued-Platforms">#</a><a id="Discontinued"></a>Discontinued Platforms</h2> <dl> <dt id="Symbian"><a class="permalink" href="#Symbian">#</a>Symbian</dt> <dd> <p>Support code relating to Symbian has been removed. Symbian was an operating system for mobile devices. The port was last updated in July 2009, and the platform itself in October 2012.</p> </dd> </dl> <h2 id="Platform-Specific-Notes"><a class="permalink" href="#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2> <dl> <dt id="DragonFlyBSD"><a class="permalink" href="#DragonFlyBSD">#</a>DragonFlyBSD</dt> <dd> <p>Tests were updated to workaround DragonFlyBSD bugs in <a href="https://bugs.dragonflybsd.org/issues/3252">tc*() functions</a> and <a href="https://bugs.dragonflybsd.org/issues/3251">ctime updates</a>.</p> </dd> <dt id="Mac-OS-X"><a class="permalink" href="#Mac-OS-X">#</a><a id="Mac"></a>Mac OS X</dt> <dd> <p>A number of system libraries no longer exist as actual files on Big Sur, even though <code>dlopen</code> will pretend they do, so now we fall back to <code>dlopen</code> if a library file can not be found. [<a href="https://github.com/Perl/perl5/issues/18407">GH #18407</a>]</p> </dd> <dt id="Windows"><a class="permalink" href="#Windows">#</a>Windows</dt> <dd> <p>Reading non-ASCII characters from the console when its codepage was set to 65001 (UTF-8) was broken due to a bug in Windows. A workaround for this problem has been implemented. [<a href="https://github.com/Perl/perl5/issues/18701">GH #18701</a>]</p> <p>Building with mingw.org compilers (version 3.4.5 or later) using mingw runtime versions < 3.22 now works again. This was broken in Perl 5.31.4.</p> <p>Building with mingw.org compilers (version 3.4.5 or later) using mingw runtime versions >= 3.21 now works (for compilers up to version 5.3.0).</p> <p><i>Makefile.mk</i>, and thus support for dmake, has been removed. It is still possible to build Perl on Windows using nmake (Makefile) and GNU make (GNUmakefile). [<a href="https://github.com/Perl/perl5/pull/18511">GH #18511</a>]</p> <p>perl can now be built with <code>USE_QUADMATH</code> on MS Windows using (32-bit and 64-bit) mingw-w64 ports of gcc. [<a href="https://github.com/Perl/perl5/pull/18465">GH #18465</a>]</p> <p>The <i>pl2bat.pl</i> utility now needs to <code>use ExtUtils::PL2Bat</code>. This could cause failures in parallel builds.</p> <p>Windows now supports <a href="/5.34.0/perlfunc#symlink">symlink()</a> and <a href="/5.34.0/perlfunc#readlink">readlink()</a>, and <a href="/5.34.0/perlfunc#lstat">lstat()</a> is no longer an alias for <a href="/5.34.0/perlfunc#stat">stat()</a>. [<a href="https://github.com/Perl/perl5/issues/18005">GH #18005</a>].</p> <p>Unlike POSIX systems, creating a symbolic link on Windows requires either elevated privileges or Windows 10 1703 or later with Developer Mode enabled.</p> <p>stat(), including <code>stat FILEHANDLE</code>, and lstat() now uses our own implementation that populates the device <code>dev</code> and inode numbers <code>ino</code> returned rather than always returning zero. The number of links <code>nlink</code> field is now always populated.</p> <p><a href="/5.34.0/perlvar#%24%7B%5EWIN32_SLOPPY_STAT%7D"><code>${^WIN32_SLOPPY_STAT}</code> </a> previously controlled whether the <code>nlink</code> field was populated requiring a separate Windows API call to fetch, since <code>nlink</code> and the other information required for <code>stat()</code> is now retrieved in a single API call.</p> <p>The <code>-r</code> and <code>-w</code> operators now return true for the <code>STDIN</code>, <code>STDOUT</code> and <code>STDERR</code> handles. Unfortunately it still won't return true for duplicates of those handles. [<a href="https://github.com/Perl/perl5/issues/8502">GH #8502</a>].</p> <p>The times returned by stat() and lstat() are no longer incorrect across Daylight Savings Time adjustments. [<a href="https://github.com/Perl/perl5/issues/6080">GH #6080</a>].</p> <p><code>-x</code> on a filehandle should now match <code>-x</code> on the corresponding filename on Vista or later. [<a href="https://github.com/Perl/perl5/issues/4145">GH #4145</a>].</p> <p><code>-e '"'</code> no longer incorrectly returns true. [<a href="https://github.com/Perl/perl5/issues/12431">GH #12431</a>].</p> <p>The same manifest is now used for Visual C++ and gcc builds.</p> <p>Previously, MSVC builds were using the <b>/manifestdependency</b> flag instead of embedding <i>perlexe.manifest</i>, which caused issues such as <code>GetVersionEx()</code> returning the wrong version number on Windows 10.</p> </dd> <dt id="z/OS"><a class="permalink" href="#z/OS">#</a><a id="z"></a><a id="z-OS"></a>z/OS</dt> <dd> <p>The locale categories <code>LC_SYNTAX</code> and <code>LC_TOD</code> are now recognized. Perl doesn't do anything with these, except it now allows you to specify them. They are included in <code>LC_ALL</code>.</p> </dd> </dl> <h1 id="Internal-Changes"><a class="permalink" href="#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1> <ul> <li><p>Corrected handling of double and long double parameters for perl's implementation of formatted output for <code>-Dusequadmath</code> builds.</p> <p>This applies to <code>PerlIO_printf()</code>, <code>croak()</code>, <code>warn()</code>, <code>sv_catpvf()</code> and their variants.</p> <p>Previously in <code>quadmath</code> builds, code like:</p> <pre><code>PerlIO_printf(PerlIO_stderr(), "%g", somedouble);</code></pre> <p>or</p> <pre><code>PerlIO_printf(PerlIO_stderr(), "%Lg", somelongdouble);</code></pre> <p>would erroneously throw an exception "panic: quadmath invalid format ...", since the code added for quadmath builds assumed <code>NV</code>s were the only floating point format passed into these functions.</p> <p>This code would also process the standard C long double specifier <code>L</code> as if it expected an <code>NV</code> (<code>__float128</code> for quadmath builds), resulting in undefined behaviour.</p> <p>These functions now correctly accept doubles, long doubles and NVs.</p> </li> <li><p>Previously the right operand of bitwise shift operators (shift amount) was implicitly cast from IV to int, but it might lead wrong results if IV does not fit in int.</p> <p>And also, shifting INT_MIN bits used to yield the shiftee unchanged (treated as 0-bit shift instead of negative shift).</p> </li> <li><p>A set of <code>cop_hints_exists_{pv,pvn,pvs,sv}</code> functions was added, to support checking for the existence of keys in the hints hash of a specific cop without needing to create a mortal copy of said value.</p> </li> <li><p>An aid has been added for using the <code>DEBUG</code> macros when debugging XS or C code. The comments in <i>perl.h</i> describe <code>DEBUG_PRE_STMTS</code> and <code>DEBUG_POST_STMTS</code>. which you can <code>#define</code> to do things like save and restore <code>errno</code>, in case the <code>DEBUG</code> calls are interfering with that, or to display timestamps, or which thread it's coming from, or the location of the call, or whatever. You can make a quick hack to help you track something down without having to edit individual <code>DEBUG</code> calls.</p> </li> <li><p>Make <code>REFCOUNTED_HE_EXISTS</code> available outside of core</p> </li> <li><p>All <code>SvTRUE</code>-ish functions now evaluate their arguments exactly once. In 5.32, plain <a href="/5.34.0/perlapi#SvTRUE">"<code>SvTRUE</code>" in perlapi</a> was changed to do that; now the rest do as well.</p> </li> <li><p>Unicode is now a first class citizen when considering the pattern /A*B/ where A and B are arbitrary. The pattern matching code tries to make a tight loop to match the span of A's. The logic of this was now really updated with support for UTF-8.</p> </li> <li><p>The <a href="/5.34.0/re">re</a> module has a new function <code>optimization</code>, which can return a hashref of optimization data discovered about a compiled regexp.</p> </li> <li><p>The <code>PERL_GLOBAL_STRUCT</code> compilation option has been removed, and with it the need or the <code>dVAR</code> macro. <code>dVAR</code> remains defined as a no-op outside <code>PERL_CORE</code> for backwards compatiblity with XS modules.</p> </li> <li><p>A new savestack type <code>SAVEt_HINTS_HH</code> has been added, which neatens the previous behaviour of <code>SAVEt_HINTS</code>. On previous versions the types and values pushed to the save stack would depend on whether the hints included the <code>HINT_LOCALIZE_HH</code> bit, which complicates external code that inspects the save stack. The new version uses a different savestack type to indicate the difference.</p> </li> <li><p>A new API function <a href="/5.34.0/perlapi#av_count">"av_count" in perlapi</a> has been added which gives a clearly named way to find how many elements are in an array.</p> </li> </ul> <h1 id="Selected-Bug-Fixes"><a class="permalink" href="#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1> <ul> <li><p>Setting <code>%ENV</code> now properly handles upgraded strings in the key. Previously Perl sent the SV's internal PV directly to the OS; now it will handle keys as it has handled values since 5.18: attempt to downgrade the string first; if that fails then warn and use the utf8 form.</p> </li> <li><p>Fix a memory leak in regcomp.c [<a href="https://github.com/Perl/perl5/issues/18604">GH #18604</a>]</p> </li> <li><p>pack/unpack format 'D' now works on all systems that could support it</p> <p>Previously if <code>NV == long double</code>, now it is supported on all platforms that have long doubles. In particular that means it is now also supported on quadmath platforms.</p> </li> <li><p>Skip trying to constant fold an incomplete op tree [<a href="https://github.com/Perl/perl5/issues/18380">GH #18380</a>]</p> <p>Constant folding of chained comparison op trees could fail under certain conditions, causing perl to crash. As a quick fix, constant folding is now skipped for such op trees. This also addresses [<a href="https://github.com/Perl/perl5/issues/17917">GH #17917</a>].</p> </li> <li><p><code>%g</code> formatting broken on Ubuntu-18.04, <code>NVSIZE == 8</code> [<a href="https://github.com/Perl/perl5/issues/18170">GH #18170</a>]</p> <p>Buggy libc implementations of the <code>gcvt</code> and <code>qgcvt</code> functions caused <code>(s)printf</code> to incorrectly truncate <code>%g</code> formatted numbers. A new Configure probe now checks for this, with the result that the libc <code>sprintf</code> will be used in place of <code>gcvt</code> and <code>qgcvt</code>.</p> <p>Tests added as part of this fix also revealed related problems in some Windows builds. The makefiles for MINGW builds on Windows have thus been adjusted to use <code>USE_MINGW_ANSI_STDIO</code> by default, ensuring that they also provide correct <code>(s)printf</code> formatting of numbers.</p> </li> <li><p><i>op.c</i>: croak on <code>my $_</code> when <code>use utf8</code> is in effect [<a href="https://github.com/Perl/perl5/issues/18449">GH #18449</a>]</p> <p>The lexical topic feature experiment was removed in Perl v5.24 and declaring <code>my $_</code> became a compile time error. However, it was previously still possible to make this declaration if <code>use utf8</code> was in effect.</p> </li> <li><p><i>regexec.c</i>: Fix assertion failure [<a href="https://github.com/Perl/perl5/issues/18451">GH #18451</a>]</p> <p>Fuzzing triggered an assertion failure in the regexp engine when too many characters were copied into a buffer.</p> </li> <li><p><a href="/5.34.0/perlfunc#semctl">semctl()</a>, <a href="/5.34.0/perlfunc#msgctl">msgctl()</a>, and <a href="/5.34.0/perlfunc#shmctl">shmctl()</a> now properly reset the UTF-8 flag on the <code>ARG</code> parameter if it's modified for <code>IPC_STAT</code> or <code>GETALL</code> operations.</p> </li> <li><p><code>semctl()</code>, <code>msgctl()</code>, and <code>shmctl()</code> now attempt to downgrade the <code>ARG</code> parameter if its value is being used as input to <code>IPC_SET</code> or <code>SETALL</code> calls. A failed downgrade will thrown an exception.</p> </li> <li><p>In cases where <code>semctl()</code>, <code>msgctl()</code> or <code>shmctl()</code> would treat the <code>ARG</code> parameter as a pointer, an undefined value no longer generates a warning. In most such calls the pointer isn't used anyway and this allows you to supply <code>undef</code> for a value not used by the underlying function.</p> </li> <li><p><a href="/5.34.0/perlfunc#semop">semop()</a> now downgrades the <code>OPSTRING</code> parameter, <a href="/5.34.0/perlfunc#msgsnd">msgsnd()</a> now downgrades the <code>MSG</code> parameter and <a href="/5.34.0/perlfunc#shmwrite">shmwrite</a> now downgrades the <code>STRING</code> parameter to treat them as bytes. Previously they would be left upgraded, providing a corrupted structure to the underlying function call.</p> </li> <li><p><a href="/5.34.0/perlfunc#msgrcv">msgrcv()</a> now properly resets the UTF-8 flag the <code>VAR</code> parameter when it is modified. Previously the UTF-8 flag could be left on, resulting in a possibly corrupt result in <code>VAR</code>.</p> </li> <li><p>Magic is now called correctly for stacked file test operators. [<a href="https://github.com/Perl/perl5/issues/18293">GH #18293</a>]</p> </li> <li><p>The <code>@ary = split(...)</code> optimization no longer switches in the target array as the value stack. [<a href="https://github.com/Perl/perl5/issues/18232">GH #18232</a>] Also see discussion at <a href="https://github.com/Perl/perl5/pull/18014#issuecomment-671299506">https://github.com/Perl/perl5/pull/18014#issuecomment-671299506</a>.</p> </li> <li><p>Fixed a bug in which some regexps with recursive subpatterns matched incorrectly.</p> <p>[<a href="https://github.com/Perl/perl5/issues/18096">GH #18096</a>]</p> </li> <li><p>On Win32, <code>waitpid(-1, WNOHANG)</code> could sometimes have a very large timeout. [<a href="https://github.com/Perl/perl5/issues/16529">GH #16529</a>]</p> </li> <li><p><code>MARK</code> and hence <code>items</code> are now correctly initialized in <code>BOOT</code> XSUBs.</p> </li> <li><p>Some list assignments involving <code>undef</code> on the left-hand side were over-optimized and produced incorrect results. [<a href="https://github.com/Perl/perl5/issues/16685">GH #16685</a>], [<a href="https://github.com/Perl/perl5/issues/17816">GH #17816</a>]</p> </li> </ul> <h1 id="Known-Problems"><a class="permalink" href="#Known-Problems">#</a><a id="Known"></a>Known Problems</h1> <p>None</p> <h1 id="Errata-From-Previous-Releases"><a class="permalink" href="#Errata-From-Previous-Releases">#</a><a id="Errata"></a>Errata From Previous Releases</h1> <p>None</p> <h1 id="Obituary"><a class="permalink" href="#Obituary">#</a>Obituary</h1> <p>Kent Fredric (KENTNL) passed away in February 2021. A native of New Zealand and a self-described "huge geek," Kent was the author or maintainer of 178 CPAN distributions, the Perl maintainer for the Gentoo Linux distribution and a contributor to the Perl core distribution. He is mourned by his family, friends and open source software communities worldwide.</p> <h1 id="Acknowledgements"><a class="permalink" href="#Acknowledgements">#</a>Acknowledgements</h1> <p>Perl 5.34.0 represents approximately 11 months of development since Perl 5.32.0 and contains approximately 280,000 lines of changes across 2,100 files from 78 authors.</p> <p>Excluding auto-generated files, documentation and release tools, there were approximately 150,000 lines of changes to 1,300 .pm, .t, .c and .h files.</p> <p>Perl continues to flourish into its fourth decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.34.0:</p> <p>Aaron Crane, Adam Hartley, Andy Dougherty, Ben Cornett, Branislav Zahradn铆k, brian d foy, Chris 'BinGOs' Williams, Christian Walde (Mithaldu), Craig A. Berry, Dagfinn Ilmari Manns氓ker, Dan Book, Daniel B枚hmer, Daniel La眉gt, Dan Kogai, David Cantrell, David Mitchell, Dominic Hamon, E. Choroba, Ed J, Eric Herman, Eric Lindblad, Eugene Alvin Villar, Felipe Gasper, Giovanni Tataranni, Graham Knop, Graham Ollis, Hauke D, H.Merijn Brand, Hugo van der Sanden, Ichinose Shogo, Ivan Baidakou, Jae Bradley, James E Keenan, Jason McIntosh, jkahrman, John Karr, John Lightsey, Kang-min Liu, Karen Etheridge, Karl Williamson, Keith Thompson, Leon Timmermans, Marc Reisner, Marcus Holland-Moritz, Max Maischein, Michael G Schwern, Nicholas Clark, Nicolas R., Paul Evans, Petr P铆sa艡, raiph, Renee Baecker, Ricardo Signes, Richard Leach, Romano, Ryan Voots, Samanta Navarro, Samuel Thibault, Sawyer X, Scott Baker, Sergey Poznyakoff, Sevan Janiyan, Shirakata Kentaro, Shlomi Fish, Sisyphus, Sizhe Zhao, Steve Hay, TAKAI Kousuke, Thibault Duponchelle, Todd Rinaldo, Tomasz Konojacki, Tom Hukins, Tom Stellard, Tony Cook, vividsnow, Yves Orton, Zakariyya Mughal, 袦懈褏邪懈谢 袣芯蟹邪褔泻芯胁.</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> <h1 id="Reporting-Bugs"><a class="permalink" href="#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1> <p>If you find what you think is a bug, you might check the perl bug database at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>. 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 open an issue at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>. Be sure to trim your bug down to a tiny but sufficient test case.</p> <p>If the bug you are reporting has security implications which make it inappropriate to send to a public issue tracker, then see <a href="/5.34.0/perlsec#SECURITY-VULNERABILITY-CONTACT-INFORMATION">"SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec</a> for details of how to report the issue.</p> <h1 id="Give-Thanks"><a class="permalink" href="#Give-Thanks">#</a><a id="Give"></a>Give Thanks</h1> <p>If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you can do so by running the <code>perlthanks</code> program:</p> <pre><code class="plaintext">perlthanks</code></pre> <p>This will send an email to the Perl 5 Porters list with your show of thanks.</p> <h1 id="SEE-ALSO"><a class="permalink" href="#SEE-ALSO">#</a><a id="SEE"></a>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> <div id="footer"> <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p> <p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script> <script src="/js/highlight.pack.js"></script> <script>hljs.highlightAll();</script> </body> </html>