CINXE.COM
perltodo - Perl TO-DO List - 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>perltodo - Perl TO-DO List - Perldoc Browser</title> <link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser"> <link rel="canonical" href="https://perldoc.perl.org/perltodo"> <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.8.1</a> <div class="dropdown-menu" aria-labelledby="dropdownlink-stable"> <a class="dropdown-item" href="/perltodo">Latest</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.40.1/perltodo">5.40.1</a> <a class="dropdown-item" href="/5.40.0/perltodo">5.40.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.38.3/perltodo">5.38.3</a> <a class="dropdown-item" href="/5.38.2/perltodo">5.38.2</a> <a class="dropdown-item" href="/5.38.1/perltodo">5.38.1</a> <a class="dropdown-item" href="/5.38.0/perltodo">5.38.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.36.3/perltodo">5.36.3</a> <a class="dropdown-item" href="/5.36.2/perltodo">5.36.2</a> <a class="dropdown-item" href="/5.36.1/perltodo">5.36.1</a> <a class="dropdown-item" href="/5.36.0/perltodo">5.36.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.34.3/perltodo">5.34.3</a> <a class="dropdown-item" href="/5.34.2/perltodo">5.34.2</a> <a class="dropdown-item" href="/5.34.1/perltodo">5.34.1</a> <a class="dropdown-item" href="/5.34.0/perltodo">5.34.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.32.1/perltodo">5.32.1</a> <a class="dropdown-item" href="/5.32.0/perltodo">5.32.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.30.3/perltodo">5.30.3</a> <a class="dropdown-item" href="/5.30.2/perltodo">5.30.2</a> <a class="dropdown-item" href="/5.30.1/perltodo">5.30.1</a> <a class="dropdown-item" href="/5.30.0/perltodo">5.30.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.28.3/perltodo">5.28.3</a> <a class="dropdown-item" href="/5.28.2/perltodo">5.28.2</a> <a class="dropdown-item" href="/5.28.1/perltodo">5.28.1</a> <a class="dropdown-item" href="/5.28.0/perltodo">5.28.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.26.3/perltodo">5.26.3</a> <a class="dropdown-item" href="/5.26.2/perltodo">5.26.2</a> <a class="dropdown-item" href="/5.26.1/perltodo">5.26.1</a> <a class="dropdown-item" href="/5.26.0/perltodo">5.26.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.24.4/perltodo">5.24.4</a> <a class="dropdown-item" href="/5.24.3/perltodo">5.24.3</a> <a class="dropdown-item" href="/5.24.2/perltodo">5.24.2</a> <a class="dropdown-item" href="/5.24.1/perltodo">5.24.1</a> <a class="dropdown-item" href="/5.24.0/perltodo">5.24.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.22.4/perltodo">5.22.4</a> <a class="dropdown-item" href="/5.22.3/perltodo">5.22.3</a> <a class="dropdown-item" href="/5.22.2/perltodo">5.22.2</a> <a class="dropdown-item" href="/5.22.1/perltodo">5.22.1</a> <a class="dropdown-item" href="/5.22.0/perltodo">5.22.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.20.3/perltodo">5.20.3</a> <a class="dropdown-item" href="/5.20.2/perltodo">5.20.2</a> <a class="dropdown-item" href="/5.20.1/perltodo">5.20.1</a> <a class="dropdown-item" href="/5.20.0/perltodo">5.20.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.18.4/perltodo">5.18.4</a> <a class="dropdown-item" href="/5.18.3/perltodo">5.18.3</a> <a class="dropdown-item" href="/5.18.2/perltodo">5.18.2</a> <a class="dropdown-item" href="/5.18.1/perltodo">5.18.1</a> <a class="dropdown-item" href="/5.18.0/perltodo">5.18.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.16.3/perltodo">5.16.3</a> <a class="dropdown-item" href="/5.16.2/perltodo">5.16.2</a> <a class="dropdown-item" href="/5.16.1/perltodo">5.16.1</a> <a class="dropdown-item" href="/5.16.0/perltodo">5.16.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.14.4/perltodo">5.14.4</a> <a class="dropdown-item" href="/5.14.3/perltodo">5.14.3</a> <a class="dropdown-item" href="/5.14.2/perltodo">5.14.2</a> <a class="dropdown-item" href="/5.14.1/perltodo">5.14.1</a> <a class="dropdown-item" href="/5.14.0/perltodo">5.14.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.12.5/perltodo">5.12.5</a> <a class="dropdown-item" href="/5.12.4/perltodo">5.12.4</a> <a class="dropdown-item" href="/5.12.3/perltodo">5.12.3</a> <a class="dropdown-item" href="/5.12.2/perltodo">5.12.2</a> <a class="dropdown-item" href="/5.12.1/perltodo">5.12.1</a> <a class="dropdown-item" href="/5.12.0/perltodo">5.12.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.10.1/perltodo">5.10.1</a> <a class="dropdown-item" href="/5.10.0/perltodo">5.10.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.8.9/perltodo">5.8.9</a> <a class="dropdown-item" href="/5.8.8/perltodo">5.8.8</a> <a class="dropdown-item" href="/5.8.7/perltodo">5.8.7</a> <a class="dropdown-item" href="/5.8.6/perltodo">5.8.6</a> <a class="dropdown-item" href="/5.8.5/perltodo">5.8.5</a> <a class="dropdown-item" href="/5.8.4/perltodo">5.8.4</a> <a class="dropdown-item" href="/5.8.3/perltodo">5.8.3</a> <a class="dropdown-item" href="/5.8.2/perltodo">5.8.2</a> <a class="dropdown-item active" href="/5.8.1/perltodo">5.8.1</a> <a class="dropdown-item" href="/5.8.0/perltodo">5.8.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.6.2/perltodo">5.6.2</a> <a class="dropdown-item" href="/5.6.1/perltodo">5.6.1</a> <a class="dropdown-item" href="/5.6.0/perltodo">5.6.0</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.005_04/perltodo">5.005_04</a> <a class="dropdown-item" href="/5.005_03/perltodo">5.005_03</a> <a class="dropdown-item" href="/5.005_02/perltodo">5.005_02</a> <a class="dropdown-item" href="/5.005_01/perltodo">5.005_01</a> <a class="dropdown-item" href="/5.005/perltodo">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/perltodo">blead</a> <a class="dropdown-item" href="/5.41.10/perltodo">5.41.10</a> <a class="dropdown-item" href="/5.41.9/perltodo">5.41.9</a> <a class="dropdown-item" href="/5.41.8/perltodo">5.41.8</a> <a class="dropdown-item" href="/5.41.7/perltodo">5.41.7</a> <a class="dropdown-item" href="/5.41.6/perltodo">5.41.6</a> <a class="dropdown-item" href="/5.41.5/perltodo">5.41.5</a> <a class="dropdown-item" href="/5.41.4/perltodo">5.41.4</a> <a class="dropdown-item" href="/5.41.3/perltodo">5.41.3</a> <a class="dropdown-item" href="/5.41.2/perltodo">5.41.2</a> <a class="dropdown-item" href="/5.41.1/perltodo">5.41.1</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.40.1-RC1/perltodo">5.40.1-RC1</a> <a class="dropdown-item" href="/5.40.0-RC2/perltodo">5.40.0-RC2</a> <a class="dropdown-item" href="/5.40.0-RC1/perltodo">5.40.0-RC1</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.39.10/perltodo">5.39.10</a> <a class="dropdown-item" href="/5.39.9/perltodo">5.39.9</a> <a class="dropdown-item" href="/5.39.8/perltodo">5.39.8</a> <a class="dropdown-item" href="/5.39.7/perltodo">5.39.7</a> <a class="dropdown-item" href="/5.39.6/perltodo">5.39.6</a> <a class="dropdown-item" href="/5.39.5/perltodo">5.39.5</a> <a class="dropdown-item" href="/5.39.4/perltodo">5.39.4</a> <a class="dropdown-item" href="/5.39.3/perltodo">5.39.3</a> <a class="dropdown-item" href="/5.39.2/perltodo">5.39.2</a> <a class="dropdown-item" href="/5.39.1/perltodo">5.39.1</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.38.3-RC1/perltodo">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.8.1/perl">Perl</a> <a class="dropdown-item" href="/5.8.1/perlintro">Intro</a> <a class="dropdown-item" href="/5.8.1/perl#Tutorials">Tutorials</a> <a class="dropdown-item" href="/5.8.1/perlfaq">FAQs</a> <a class="dropdown-item" href="/5.8.1/perl#Reference-Manual">Reference</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.8.1/perlop">Operators</a> <a class="dropdown-item" href="/5.8.1/functions">Functions</a> <a class="dropdown-item" href="/5.8.1/variables">Variables</a> <a class="dropdown-item" href="/5.8.1/modules">Modules</a> <a class="dropdown-item" href="/5.8.1/perlutil">Utilities</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="/5.8.1/perldelta">Release Notes</a> <a class="dropdown-item" href="/5.8.1/perlcommunity">Community</a> <a class="dropdown-item" href="/5.8.1/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.8.1/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.8.1/perltodo">perltodo</a> <div id="more"> (<a href="/5.8.1/perltodo.txt">source</a>, <a href="https://metacpan.org/pod/perltodo">CPAN</a>) </div> </div> <div class="leading-notice"> You are viewing the version of this documentation from Perl 5.8.1. <a href="/perltodo">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="#To-do-during-5.6.x">To do during 5.6.x</a> <ul> <li> <a class="text-decoration-none" href="#Support-for-I/O-disciplines">Support for I/O disciplines</a> </li> <li> <a class="text-decoration-none" href="#Autoload-bytes.pm">Autoload bytes.pm</a> </li> <li> <a class="text-decoration-none" href="#Make-%22%5Cu%7BXXXX%7D%22-et-al-work">Make "\u{XXXX}" et al work</a> </li> <li> <a class="text-decoration-none" href="#Create-a-char-*sv_pvprintify(sv,-STRLEN-*lenp,-UV-flags)">Create a char *sv_pvprintify(sv, STRLEN *lenp, UV flags)</a> </li> <li> <a class="text-decoration-none" href="#Overloadable-regex-assertions">Overloadable regex assertions</a> </li> <li> <a class="text-decoration-none" href="#Unicode">Unicode</a> </li> <li> <a class="text-decoration-none" href="#Work-out-exit/die-semantics-for-threads">Work out exit/die semantics for threads</a> </li> <li> <a class="text-decoration-none" href="#Better-support-for-nonpreemptive-threading-systems-like-GNU-pth">Better support for nonpreemptive threading systems like GNU pth</a> </li> <li> <a class="text-decoration-none" href="#Typed-lexicals-for-compiler">Typed lexicals for compiler</a> </li> <li> <a class="text-decoration-none" href="#Compiler-workarounds-for-Win32">Compiler workarounds for Win32</a> </li> <li> <a class="text-decoration-none" href="#AUTOLOADing-in-the-compiler">AUTOLOADing in the compiler</a> </li> <li> <a class="text-decoration-none" href="#Fixing-comppadlist-when-compiling">Fixing comppadlist when compiling</a> </li> <li> <a class="text-decoration-none" href="#Cleaning-up-exported-namespace">Cleaning up exported namespace</a> </li> <li> <a class="text-decoration-none" href="#Complete-signal-handling">Complete signal handling</a> </li> <li> <a class="text-decoration-none" href="#Out-of-source-builds">Out-of-source builds</a> </li> <li> <a class="text-decoration-none" href="#POSIX-realtime-support">POSIX realtime support</a> </li> <li> <a class="text-decoration-none" href="#UNIX98-support">UNIX98 support</a> </li> <li> <a class="text-decoration-none" href="#IPv6-Support">IPv6 Support</a> </li> <li> <a class="text-decoration-none" href="#Long-double-conversion">Long double conversion</a> </li> <li> <a class="text-decoration-none" href="#Locales">Locales</a> </li> <li> <a class="text-decoration-none" href="#Arithmetic-on-non-Arabic-numerals">Arithmetic on non-Arabic numerals</a> </li> <li> <a class="text-decoration-none" href="#POSIX-Unicode-character-classes">POSIX Unicode character classes</a> </li> <li> <a class="text-decoration-none" href="#Factoring-out-common-suffices/prefices-in-regexps-(trie-optimization)">Factoring out common suffices/prefices in regexps (trie optimization)</a> </li> <li> <a class="text-decoration-none" href="#Security-audit-shipped-utilities">Security audit shipped utilities</a> </li> <li> <a class="text-decoration-none" href="#Sort-out-the-uid-setting-mess">Sort out the uid-setting mess</a> </li> <li> <a class="text-decoration-none" href="#Custom-opcodes">Custom opcodes</a> </li> <li> <a class="text-decoration-none" href="#DLL-Versioning">DLL Versioning</a> </li> <li> <a class="text-decoration-none" href="#Introduce-@(-and-@)">Introduce @( and @)</a> </li> <li> <a class="text-decoration-none" href="#Floating-point-handling">Floating point handling</a> </li> <li> <a class="text-decoration-none" href="#IV/UV-preservation">IV/UV preservation</a> </li> <li> <a class="text-decoration-none" href="#Replace-pod2html-with-something-using-Pod::Parser">Replace pod2html with something using Pod::Parser</a> </li> <li> <a class="text-decoration-none" href="#Automate-module-testing-on-CPAN">Automate module testing on CPAN</a> </li> <li> <a class="text-decoration-none" href="#sendmsg-and-recvmsg">sendmsg and recvmsg</a> </li> <li> <a class="text-decoration-none" href="#Rewrite-perlre-documentation">Rewrite perlre documentation</a> </li> <li> <a class="text-decoration-none" href="#Convert-example-code-to-IO::Handle-filehandles">Convert example code to IO::Handle filehandles</a> </li> <li> <a class="text-decoration-none" href="#Document-Win32-choices">Document Win32 choices</a> </li> <li> <a class="text-decoration-none" href="#Check-new-modules">Check new modules</a> </li> <li> <a class="text-decoration-none" href="#Make-roffitall-find-pods-and-libs-itself">Make roffitall find pods and libs itself</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#To-do-at-some-point">To do at some point</a> <ul> <li> <a class="text-decoration-none" href="#Remove-regular-expression-recursion">Remove regular expression recursion</a> </li> <li> <a class="text-decoration-none" href="#Memory-leaks-after-failed-eval">Memory leaks after failed eval</a> </li> <li> <a class="text-decoration-none" href="#bitfields-in-pack">bitfields in pack</a> </li> <li> <a class="text-decoration-none" href="#Cross-compilation">Cross compilation</a> </li> <li> <a class="text-decoration-none" href="#Perl-preprocessor-/-macros">Perl preprocessor / macros</a> </li> <li> <a class="text-decoration-none" href="#Perl-lexer-in-Perl">Perl lexer in Perl</a> </li> <li> <a class="text-decoration-none" href="#Using-POSIX-calls-internally">Using POSIX calls internally</a> </li> <li> <a class="text-decoration-none" href="#-i-rename-file-when-changed">-i rename file when changed</a> </li> <li> <a class="text-decoration-none" href="#All-ARGV-input-should-act-like-%3C%3E">All ARGV input should act like <></a> </li> <li> <a class="text-decoration-none" href="#Support-for-rerunning-debugger">Support for rerunning debugger</a> </li> <li> <a class="text-decoration-none" href="#Test-Suite-for-the-Debugger">Test Suite for the Debugger</a> </li> <li> <a class="text-decoration-none" href="#my-sub-foo-%7B-%7D">my sub foo { }</a> </li> <li> <a class="text-decoration-none" href="#One-pass-global-destruction">One-pass global destruction</a> </li> <li> <a class="text-decoration-none" href="#Rewrite-regexp-parser">Rewrite regexp parser</a> </li> <li> <a class="text-decoration-none" href="#Cache-recently-used-regexps">Cache recently used regexps</a> </li> <li> <a class="text-decoration-none" href="#Cross-compilation-support">Cross-compilation support</a> </li> <li> <a class="text-decoration-none" href="#Bit-shifting-bitvectors">Bit-shifting bitvectors</a> </li> <li> <a class="text-decoration-none" href="#debugger-pragma">debugger pragma</a> </li> <li> <a class="text-decoration-none" href="#use-less-pragma">use less pragma</a> </li> <li> <a class="text-decoration-none" href="#switch-structures">switch structures</a> </li> <li> <a class="text-decoration-none" href="#Cache-eval-tree">Cache eval tree</a> </li> <li> <a class="text-decoration-none" href="#rcatmaybe">rcatmaybe</a> </li> <li> <a class="text-decoration-none" href="#Shrink-opcode-tables">Shrink opcode tables</a> </li> <li> <a class="text-decoration-none" href="#Optimize-away-@_">Optimize away @_</a> </li> <li> <a class="text-decoration-none" href="#Prototypes-versus-indirect-objects">Prototypes versus indirect objects</a> </li> <li> <a class="text-decoration-none" href="#Install-HTML">Install HTML</a> </li> <li> <a class="text-decoration-none" href="#Prototype-method-calls">Prototype method calls</a> </li> <li> <a class="text-decoration-none" href="#Return-context-prototype-declarations">Return context prototype declarations</a> </li> <li> <a class="text-decoration-none" href="#magic_setisa">magic_setisa</a> </li> <li> <a class="text-decoration-none" href="#Garbage-collection">Garbage collection</a> </li> <li> <a class="text-decoration-none" href="#IO-tutorial">IO tutorial</a> </li> <li> <a class="text-decoration-none" href="#Rewrite-perldoc">Rewrite perldoc</a> </li> <li> <a class="text-decoration-none" href="#Install-.3p-manpages">Install .3p manpages</a> </li> <li> <a class="text-decoration-none" href="#Unicode-tutorial">Unicode tutorial</a> </li> <li> <a class="text-decoration-none" href="#Update-POSIX.pm-for-1003.1-2">Update POSIX.pm for 1003.1-2</a> </li> <li> <a class="text-decoration-none" href="#Retargetable-installation">Retargetable installation</a> </li> <li> <a class="text-decoration-none" href="#POSIX-emulation-on-non-POSIX-systems">POSIX emulation on non-POSIX systems</a> </li> <li> <a class="text-decoration-none" href="#Rename-Win32-headers">Rename Win32 headers</a> </li> <li> <a class="text-decoration-none" href="#Finish-off-lvalue-functions">Finish off lvalue functions</a> </li> <li> <a class="text-decoration-none" href="#Update-sprintf-documentation">Update sprintf documentation</a> </li> <li> <a class="text-decoration-none" href="#Use-fchown/fchmod-internally">Use fchown/fchmod internally</a> </li> <li> <a class="text-decoration-none" href="#Make-v-strings-overloaded-objects">Make v-strings overloaded objects</a> </li> <li> <a class="text-decoration-none" href="#Allow-restricted-hash-assignment">Allow restricted hash assignment</a> </li> <li> <a class="text-decoration-none" href="#Should-overload-be-inheritable?">Should overload be inheritable?</a> </li> <li> <a class="text-decoration-none" href="#Taint-rethink">Taint rethink</a> </li> <li> <a class="text-decoration-none" href="#Perform-correctly-when-XSUBs-call-subroutines-that-exit-via-goto(LABEL)-and-friends">Perform correctly when XSUBs call subroutines that exit via goto(LABEL) and friends</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Vague-ideas">Vague ideas</a> <ul> <li> <a class="text-decoration-none" href="#ref()-in-list-context">ref() in list context</a> </li> <li> <a class="text-decoration-none" href="#Make-tr///-return-histogram-of-characters-in-list-context">Make tr/// return histogram of characters in list context</a> </li> <li> <a class="text-decoration-none" href="#Compile-to-real-threaded-code">Compile to real threaded code</a> </li> <li> <a class="text-decoration-none" href="#Structured-types">Structured types</a> </li> <li> <a class="text-decoration-none" href="#Modifiable-$1-et-al.">Modifiable $1 et al.</a> </li> <li> <a class="text-decoration-none" href="#Procedural-interfaces-for-IO::*,-etc.">Procedural interfaces for IO::*, etc.</a> </li> <li> <a class="text-decoration-none" href="#RPC-modules">RPC modules</a> </li> <li> <a class="text-decoration-none" href="#Attach/detach-debugger-from-running-program">Attach/detach debugger from running program</a> </li> <li> <a class="text-decoration-none" href="#GUI::Native">GUI::Native</a> </li> <li> <a class="text-decoration-none" href="#foreach(reverse-...)">foreach(reverse ...)</a> </li> <li> <a class="text-decoration-none" href="#Constant-function-cache">Constant function cache</a> </li> <li> <a class="text-decoration-none" href="#Approximate-regular-expression-matching">Approximate regular expression matching</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Ongoing">Ongoing</a> <ul> <li> <a class="text-decoration-none" href="#Update-guts-documentation">Update guts documentation</a> </li> <li> <a class="text-decoration-none" href="#Add-more-tests">Add more tests</a> </li> <li> <a class="text-decoration-none" href="#Update-auxiliary-tools">Update auxiliary tools</a> </li> <li> <a class="text-decoration-none" href="#Create-debugging-macros">Create debugging macros</a> </li> <li> <a class="text-decoration-none" href="#truncate-to-the-people">truncate to the people</a> </li> <li> <a class="text-decoration-none" href="#Unicode-in-Filenames">Unicode in Filenames</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Unicode-in-%25ENV">Unicode in %ENV</a> </li> <li> <a class="text-decoration-none" href="#Recently-done-things">Recently done things</a> <ul> <li> <a class="text-decoration-none" href="#Alternative-RE-syntax-module">Alternative RE syntax module</a> </li> <li> <a class="text-decoration-none" href="#Safe-signal-handling">Safe signal handling</a> </li> <li> <a class="text-decoration-none" href="#Tie-Modules">Tie Modules</a> </li> <li> <a class="text-decoration-none" href="#gettimeofday">gettimeofday</a> </li> <li> <a class="text-decoration-none" href="#setitimer-and-getimiter">setitimer and getimiter</a> </li> <li> <a class="text-decoration-none" href="#Testing-__DIE__-hook">Testing __DIE__ hook</a> </li> <li> <a class="text-decoration-none" href="#CPP-equivalent-in-Perl">CPP equivalent in Perl</a> </li> <li> <a class="text-decoration-none" href="#Explicit-switch-statements">Explicit switch statements</a> </li> <li> <a class="text-decoration-none" href="#autocroak">autocroak</a> </li> <li> <a class="text-decoration-none" href="#UTF/EBCDIC">UTF/EBCDIC</a> </li> <li> <a class="text-decoration-none" href="#UTF-Regexes">UTF Regexes</a> </li> <li> <a class="text-decoration-none" href="#perlcc-to-produce-executable">perlcc to produce executable</a> </li> <li> <a class="text-decoration-none" href="#END-blocks-saved-in-compiled-output">END blocks saved in compiled output</a> </li> <li> <a class="text-decoration-none" href="#Secure-temporary-file-module">Secure temporary file module</a> </li> <li> <a class="text-decoration-none" href="#Integrate-Time::HiRes">Integrate Time::HiRes</a> </li> <li> <a class="text-decoration-none" href="#Turn-Cwd-into-XS">Turn Cwd into XS</a> </li> <li> <a class="text-decoration-none" href="#Mmap-for-input">Mmap for input</a> </li> <li> <a class="text-decoration-none" href="#Byte-to/from-UTF-8-and-UTF-8-to/from-local-conversion">Byte to/from UTF-8 and UTF-8 to/from local conversion</a> </li> <li> <a class="text-decoration-none" href="#Add-sockatmark-support">Add sockatmark support</a> </li> <li> <a class="text-decoration-none" href="#Mailing-list-archives">Mailing list archives</a> </li> <li> <a class="text-decoration-none" href="#Bug-tracking">Bug tracking</a> </li> <li> <a class="text-decoration-none" href="#Integrate-MacPerl">Integrate MacPerl</a> </li> <li> <a class="text-decoration-none" href="#Web-%22nerve-center%22-for-Perl">Web "nerve center" for Perl</a> </li> <li> <a class="text-decoration-none" href="#Regular-expression-tutorial">Regular expression tutorial</a> </li> <li> <a class="text-decoration-none" href="#Debugging-Tutorial">Debugging Tutorial</a> </li> <li> <a class="text-decoration-none" href="#Integrate-new-modules">Integrate new modules</a> </li> <li> <a class="text-decoration-none" href="#Integrate-profiler">Integrate profiler</a> </li> <li> <a class="text-decoration-none" href="#Y2K-error-detection">Y2K error detection</a> </li> <li> <a class="text-decoration-none" href="#Regular-expression-debugger">Regular expression debugger</a> </li> <li> <a class="text-decoration-none" href="#POD-checker">POD checker</a> </li> <li> <a class="text-decoration-none" href="#%22Dynamic%22-lexicals">"Dynamic" lexicals</a> </li> <li> <a class="text-decoration-none" href="#Cache-precompiled-modules">Cache precompiled modules</a> </li> </ul> </li> <li> <a class="text-decoration-none" href="#Deprecated-Wishes">Deprecated Wishes</a> <ul> <li> <a class="text-decoration-none" href="#Loop-control-on-do%7B%7D">Loop control on do{}</a> </li> <li> <a class="text-decoration-none" href="#Lexically-scoped-typeglobs">Lexically scoped typeglobs</a> </li> <li> <a class="text-decoration-none" href="#format-BOTTOM">format BOTTOM</a> </li> <li> <a class="text-decoration-none" href="#report-HANDLE">report HANDLE</a> </li> <li> <a class="text-decoration-none" href="#Generalised-want()/caller())">Generalised want()/caller())</a> </li> <li> <a class="text-decoration-none" href="#Named-prototypes">Named prototypes</a> </li> <li> <a class="text-decoration-none" href="#Built-in-globbing">Built-in globbing</a> </li> <li> <a class="text-decoration-none" href="#Regression-tests-for-suidperl">Regression tests for suidperl</a> </li> <li> <a class="text-decoration-none" href="#Cached-hash-values">Cached hash values</a> </li> <li> <a class="text-decoration-none" href="#Add-compression-modules">Add compression modules</a> </li> <li> <a class="text-decoration-none" href="#Reorganise-documentation-into-tutorials/references">Reorganise documentation into tutorials/references</a> </li> <li> <a class="text-decoration-none" href="#Remove-distinction-between-functions-and-operators">Remove distinction between functions and operators</a> </li> <li> <a class="text-decoration-none" href="#Make-XS-easier-to-use">Make XS easier to use</a> </li> <li> <a class="text-decoration-none" href="#Make-embedding-easier-to-use">Make embedding easier to use</a> </li> <li> <a class="text-decoration-none" href="#man-for-perl">man for perl</a> </li> <li> <a class="text-decoration-none" href="#my-$Package::variable">my $Package::variable</a> </li> <li> <a class="text-decoration-none" href="#%22or%22-tests-defined,-not-truth">"or" tests defined, not truth</a> </li> <li> <a class="text-decoration-none" href="#%22class%22-based-lexicals">"class"-based lexicals</a> </li> <li> <a class="text-decoration-none" href="#byteperl">byteperl</a> </li> <li> <a class="text-decoration-none" href="#Lazy-evaluation-/-tail-recursion-removal">Lazy evaluation / tail recursion removal</a> </li> <li> <a class="text-decoration-none" href="#Make-%22use-utf8%22-the-default">Make "use utf8" the default</a> </li> <li> <a class="text-decoration-none" href="#Unicode-collation-and-normalization">Unicode collation and normalization</a> </li> <li> <a class="text-decoration-none" href="#pack/unpack-tutorial">pack/unpack tutorial</a> </li> </ul> </li> </ul> <h1 id="NAME"><a class="permalink" href="#NAME">#</a>NAME</h1> <p>perltodo - Perl TO-DO List</p> <h1 id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">#</a>DESCRIPTION</h1> <p>This is a list of wishes for Perl. Send updates to <i>perl5-porters@perl.org</i>. If you want to work on any of these projects, be sure to check the perl5-porters archives for past ideas, flames, and propaganda. This will save you time and also prevent you from implementing something that Larry has already vetoed. One set of archives may be found at:</p> <pre><code class="plaintext">http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/</code></pre> <h1 id="To-do-during-5.6.x"><a class="permalink" href="#To-do-during-5.6.x">#</a><a id="To"></a>To do during 5.6.x</h1> <h2 id="Support-for-I/O-disciplines"><a class="permalink" href="#Support-for-I/O-disciplines">#</a><a id="Support"></a><a id="Support-for-I-O-disciplines"></a>Support for I/O disciplines</h2> <p><code>perlio</code> provides this, but the interface could be a lot more straightforward.</p> <h2 id="Autoload-bytes.pm"><a class="permalink" href="#Autoload-bytes.pm">#</a><a id="Autoload"></a>Autoload bytes.pm</h2> <p>When the lexer sees, for instance, <code>bytes::length</code>, it should automatically load the <code>bytes</code> pragma.</p> <h2 id="Make-"\u{XXXX}"-et-al-work"><a class="permalink" href="#Make-%22%5Cu%7BXXXX%7D%22-et-al-work">#</a><a id="Make"></a><a id="Make-u-XXXX-et-al-work"></a>Make "\u{XXXX}" et al work</h2> <p>Danger, Will Robinson! Discussing the semantics of <code>"\x{F00}"</code>, <code>"\xF00"</code> and <code>"\U{F00}"</code> on P5P <i>will</i> lead to a long and boring flamewar.</p> <h2 id="Create-a-char-*sv_pvprintify(sv,-STRLEN-*lenp,-UV-flags)"><a class="permalink" href="#Create-a-char-*sv_pvprintify(sv,-STRLEN-*lenp,-UV-flags)">#</a><a id="Create"></a><a id="Create-a-char-sv_pvprintify-sv-STRLEN-lenp-UV-flags"></a>Create a char *sv_pvprintify(sv, STRLEN *lenp, UV flags)</h2> <p>For displaying PVs with control characters, embedded nulls, and Unicode. This would be useful for printing warnings, or data and regex dumping, not_a_number(), and so on.</p> <p>Requirements: should handle both byte and UTF-8 strings. isPRINT() characters printed as-is, character less than 256 as \xHH, Unicode characters as \x{HHH}. Don't assume ASCII-like, either, get somebody on EBCDIC to test the output.</p> <p>Possible options, controlled by the flags: - whitespace (other than ' ' of isPRINT()) printed as-is - use isPRINT_LC() instead of isPRINT() - print control characters like this: "\cA" - print control characters like this: "^A" - non-PRINTables printed as '.' instead of \xHH - use \OOO instead of \xHH - use the C/Perl-metacharacters like \n, \t - have a maximum length for the produced string (read it from *lenp) - append a "..." to the produced string if the maximum length is exceeded - really fancy: print unicode characters as \N{...}</p> <p>NOTE: pv_display(), pv_uni_display(), sv_uni_display() are already doing something like the above.</p> <h2 id="Overloadable-regex-assertions"><a class="permalink" href="#Overloadable-regex-assertions">#</a><a id="Overloadable"></a>Overloadable regex assertions</h2> <p>This may or may not be possible with the current regular expression engine. The idea is that, for instance, <code>\b</code> needs to be algorithmically computed if you're dealing with Thai text. Hence, the <b>\b</b> assertion wants to be overloaded by a function.</p> <h2 id="Unicode"><a class="permalink" href="#Unicode">#</a>Unicode</h2> <ul> <li><p>Allow for long form of the General Category Properties, e.g <code>\p{IsOpenPunctuation}</code>, not just the abbreviated form, e.g. <code>\p{IsPs}</code>.</p> </li> <li><p>Allow for the metaproperties: <code>XID Start</code>, <code>XID Continue</code>, <code>NF*_NO</code>, <code>NF*_MAYBE</code> (require the DerivedCoreProperties and DerviceNormalizationProperties files).</p> <p>There are also multiple value properties still unimplemented: <code>Numeric Type</code>, <code>East Asian Width</code>.</p> </li> <li><p></p> <pre><code class="plaintext">Case Mappings? http://www.unicode.org/unicode/reports/tr21/</code></pre> <p>Mostly implemented (all of 1:1, 1:N, N:1), only the "final sigma" and locale-specific rules of SpecCase are not implemented.</p> </li> <li><p>UTF-8 identifier names should probably be canonicalized: NFC?</p> </li> <li><p>UTF-8 in package names and sub names? The first is problematic because of the mapping to pathnames, ditto for the second one if one does autosplitting, for example. Some of this works already in 5.8.0, but essentially it is unsupported. Constructs to consider, at the very least:</p> <pre><code>use utf8; package UnicodePackage; sub new { bless {}, shift }; sub UnicodeMethod1 { ... $_[0]->UnicodeMethod2(...) ... } sub UnicodeMethod2 { ... } # in here caller(0) should contain Unicode ... package main; my $x = UnicodePackage->new; print ref $x, "\n"; # should be Unicode $x->UnicodeMethod1(...); my $y = UnicodeMethod3 UnicodePackage ...;</code></pre> <p>In the above all <i>UnicodeXxx</i> contain (identifier-worthy) characters beyond the code point 255, for example 256. Wherever package/class or subroutine names can be returned needs to be checked for Unicodeness.</p> </li> </ul> <p>See <a href="/5.8.1/perlunicode#UNICODE-REGULAR-EXPRESSION-SUPPORT-LEVEL">"UNICODE REGULAR EXPRESSION SUPPORT LEVEL" in perlunicode</a> for what's there and what's missing. Almost all of Levels 2 and 3 is missing, and as of 5.8.0 not even all of Level 1 is there. They have some tricks Perl doesn't yet implement, such as character class subtraction.</p> <pre><code class="plaintext">http://www.unicode.org/unicode/reports/tr18/</code></pre> <h2 id="Work-out-exit/die-semantics-for-threads"><a class="permalink" href="#Work-out-exit/die-semantics-for-threads">#</a><a id="Work"></a><a id="Work-out-exit-die-semantics-for-threads"></a>Work out exit/die semantics for threads</h2> <p>There are some suggestions to use for example something like this: default to "(thread exiting first will) wait for the other threads until up to 60 seconds". Other possibilities:</p> <pre><code>use threads wait => 0;</code></pre> <p>Do not wait.</p> <pre><code>use threads wait_for => 10;</code></pre> <p>Wait up to 10 seconds.</p> <pre><code>use threads wait_for => -1;</code></pre> <p>Wait for ever.</p> <p>http://archive.develooper.com/perl5-porters@perl.org/msg79618.html</p> <h2 id="Better-support-for-nonpreemptive-threading-systems-like-GNU-pth"><a class="permalink" href="#Better-support-for-nonpreemptive-threading-systems-like-GNU-pth">#</a><a id="Better"></a>Better support for nonpreemptive threading systems like GNU pth</h2> <p>To better support nonpreemptive threading systems, perhaps some of the blocking functions internally in Perl should do a yield() before a blocking call. (Now certain threads tests ({basic,list,thread.t}) simply do a yield() before they sleep() to give nonpreemptive thread implementations a chance).</p> <p>In some cases, like the GNU pth, which has replacement functions that are nonblocking (pth_select instead of select), maybe Perl should be using them instead when built for threading.</p> <h2 id="Typed-lexicals-for-compiler"><a class="permalink" href="#Typed-lexicals-for-compiler">#</a><a id="Typed"></a>Typed lexicals for compiler</h2> <h2 id="Compiler-workarounds-for-Win32"><a class="permalink" href="#Compiler-workarounds-for-Win32">#</a><a id="Compiler"></a>Compiler workarounds for Win32</h2> <h2 id="AUTOLOADing-in-the-compiler"><a class="permalink" href="#AUTOLOADing-in-the-compiler">#</a><a id="AUTOLOADing"></a>AUTOLOADing in the compiler</h2> <h2 id="Fixing-comppadlist-when-compiling"><a class="permalink" href="#Fixing-comppadlist-when-compiling">#</a><a id="Fixing"></a>Fixing comppadlist when compiling</h2> <h2 id="Cleaning-up-exported-namespace"><a class="permalink" href="#Cleaning-up-exported-namespace">#</a><a id="Cleaning"></a>Cleaning up exported namespace</h2> <h2 id="Complete-signal-handling"><a class="permalink" href="#Complete-signal-handling">#</a><a id="Complete"></a>Complete signal handling</h2> <p>Add <code>PERL_ASYNC_CHECK</code> to opcodes which loop; replace <code>sigsetjmp</code> with <code>sigjmp</code>; check <code>wait</code> for signal safety.</p> <h2 id="Out-of-source-builds"><a class="permalink" href="#Out-of-source-builds">#</a><a id="Out"></a>Out-of-source builds</h2> <p>This was done for 5.6.0, but needs reworking for 5.7.x</p> <h2 id="POSIX-realtime-support"><a class="permalink" href="#POSIX-realtime-support">#</a><a id="POSIX"></a>POSIX realtime support</h2> <p>POSIX 1003.1 1996 Edition support--realtime stuff: POSIX semaphores, message queues, shared memory, realtime clocks, timers, signals (the metaconfig units mostly already exist for these)</p> <h2 id="UNIX98-support"><a class="permalink" href="#UNIX98-support">#</a><a id="UNIX98"></a>UNIX98 support</h2> <p>Reader-writer locks, realtime/asynchronous IO</p> <h2 id="IPv6-Support"><a class="permalink" href="#IPv6-Support">#</a><a id="IPv6"></a>IPv6 Support</h2> <p>There are non-core modules, such as <code>Socket6</code>, but these will need integrating when IPv6 actually starts to really happen. See RFC 2292 and RFC 2553.</p> <h2 id="Long-double-conversion"><a class="permalink" href="#Long-double-conversion">#</a><a id="Long"></a>Long double conversion</h2> <p>Floating point formatting is still causing some weird test failures.</p> <h2 id="Locales"><a class="permalink" href="#Locales">#</a>Locales</h2> <p>Locales and Unicode interact with each other in unpleasant ways. One possible solution would be to adopt/support ICU:</p> <pre><code class="plaintext">http://oss.software.ibm.com/developerworks/opensource/icu/project/</code></pre> <h2 id="Arithmetic-on-non-Arabic-numerals"><a class="permalink" href="#Arithmetic-on-non-Arabic-numerals">#</a><a id="Arithmetic"></a>Arithmetic on non-Arabic numerals</h2> <p><code>[1234567890]</code> aren't the only numerals any more.</p> <h2 id="POSIX-Unicode-character-classes"><a class="permalink" href="#POSIX-Unicode-character-classes">#</a><a id="POSIX1"></a>POSIX Unicode character classes</h2> <p>(<code>[=a=]</code> for equivalence classes, <code>[.ch.]</code> for collation.) These are dependent on Unicode normalization and collation.</p> <h2 id="Factoring-out-common-suffices/prefices-in-regexps-(trie-optimization)"><a class="permalink" href="#Factoring-out-common-suffices/prefices-in-regexps-(trie-optimization)">#</a><a id="Factoring"></a><a id="Factoring-out-common-suffices-prefices-in-regexps-trie-optimization"></a>Factoring out common suffices/prefices in regexps (trie optimization)</h2> <p>Currently, the user has to optimize <code>foo|far</code> and <code>foo|goo</code> into <code>f(?:oo|ar)</code> and <code>[fg]oo</code> by hand; this could be done automatically.</p> <h2 id="Security-audit-shipped-utilities"><a class="permalink" href="#Security-audit-shipped-utilities">#</a><a id="Security"></a>Security audit shipped utilities</h2> <p>All the code we ship with Perl needs to be sensible about temporary file handling, locking, input validation, and so on.</p> <h2 id="Sort-out-the-uid-setting-mess"><a class="permalink" href="#Sort-out-the-uid-setting-mess">#</a><a id="Sort"></a>Sort out the uid-setting mess</h2> <p>Currently there are several problems with the setting of uids ($<, $> for the real and effective uids). Firstly, what exactly setuid() call gets invoked in which platform is simply a big mess that needs to be untangled. Secondly, the effects are apparently not standard across platforms, (if you first set $< and then $>, or vice versa, being uid == euid == zero, or just euid == zero, or as a normal user, what are the results?). The test suite not (usually) being run as root means that these things do not get much testing. Thirdly, there's quite often a third uid called saved uid, and Perl has no knowledge of that feature in any way. (If one has the saved uid of zero, one can get back any real and effective uids.) As an example, to change also the saved uid, one needs to set the real and effective uids <b>twice</b>-- in most systems, that is: in HP-UX that doesn't seem to work.</p> <h2 id="Custom-opcodes"><a class="permalink" href="#Custom-opcodes">#</a><a id="Custom"></a>Custom opcodes</h2> <p>Have a way to introduce user-defined opcodes without the subroutine call overhead of an XSUB; the user should be able to create PP code. Simon Cozens has some ideas on this.</p> <h2 id="DLL-Versioning"><a class="permalink" href="#DLL-Versioning">#</a><a id="DLL"></a>DLL Versioning</h2> <p>Windows needs a way to know what version of an XS or <code>libperl</code> DLL it's loading.</p> <h2 id="Introduce-@(-and-@)"><a class="permalink" href="#Introduce-@(-and-@)">#</a><a id="Introduce"></a><a id="Introduce-and"></a>Introduce @( and @)</h2> <p><code>$(</code> may return "foo bar baz". Unfortunately, since groups can theoretically have spaces in their names, this could be one, two or three groups.</p> <h2 id="Floating-point-handling"><a class="permalink" href="#Floating-point-handling">#</a><a id="Floating"></a>Floating point handling</h2> <p><code>NaN</code> and <code>inf</code> support is particularly troublesome. (fp_classify(), fp_class(), fp_class_d(), class(), isinf(), isfinite(), finite(), isnormal(), unordered(), <ieeefp.h>, <fp_class.h> (there are metaconfig units for all these) (I think), fp_setmask(), fp_getmask(), fp_setround(), fp_getround() (no metaconfig units yet for these). Don't forget finitel(), fp_classl(), fp_class_l(), (yes, both do, unfortunately, exist), and unorderedl().)</p> <p>As of Perl 5.6.1, there is a Perl macro, Perl_isnan().</p> <h2 id="IV/UV-preservation"><a class="permalink" href="#IV/UV-preservation">#</a><a id="IV"></a><a id="IV-UV-preservation"></a>IV/UV preservation</h2> <p>Nicholas Clark has done a lot of work on this, but work is continuing. <code>+</code>, <code>-</code> and <code>*</code> work, but guards need to be in place for <code>%</code>, <code>/</code>, <code>&</code>, <code>oct</code>, <code>hex</code> and <code>pack</code>.</p> <h2 id="Replace-pod2html-with-something-using-Pod::Parser"><a class="permalink" href="#Replace-pod2html-with-something-using-Pod::Parser">#</a><a id="Replace"></a>Replace pod2html with something using Pod::Parser</h2> <p>The CPAN module <code>Marek::Pod::Html</code> may be a more suitable basis for a <code>pod2html</code> converter; the current one duplicates the functionality abstracted in <code>Pod::Parser</code>, which makes updating the POD language difficult.</p> <h2 id="Automate-module-testing-on-CPAN"><a class="permalink" href="#Automate-module-testing-on-CPAN">#</a><a id="Automate"></a>Automate module testing on CPAN</h2> <p>When a new Perl is being beta tested, porters have to manually grab their favourite CPAN modules and test them - this should be done automatically.</p> <h2 id="sendmsg-and-recvmsg"><a class="permalink" href="#sendmsg-and-recvmsg">#</a><a id="sendmsg"></a>sendmsg and recvmsg</h2> <p>We have all the other BSD socket functions but these. There are metaconfig units for these functions which can be added. To avoid these being new opcodes, a solution similar to the way <code>sockatmark</code> was added would be preferable. (Autoload the <code>IO::whatever</code> module.)</p> <h2 id="Rewrite-perlre-documentation"><a class="permalink" href="#Rewrite-perlre-documentation">#</a><a id="Rewrite"></a>Rewrite perlre documentation</h2> <p>The new-style patterns need full documentation, and the whole document needs to be a lot clearer.</p> <h2 id="Convert-example-code-to-IO::Handle-filehandles"><a class="permalink" href="#Convert-example-code-to-IO::Handle-filehandles">#</a><a id="Convert"></a>Convert example code to IO::Handle filehandles</h2> <h2 id="Document-Win32-choices"><a class="permalink" href="#Document-Win32-choices">#</a><a id="Document"></a>Document Win32 choices</h2> <h2 id="Check-new-modules"><a class="permalink" href="#Check-new-modules">#</a><a id="Check"></a>Check new modules</h2> <h2 id="Make-roffitall-find-pods-and-libs-itself"><a class="permalink" href="#Make-roffitall-find-pods-and-libs-itself">#</a><a id="Make1"></a>Make roffitall find pods and libs itself</h2> <p>Simon Cozens has done some work on this but it needs a rethink.</p> <h1 id="To-do-at-some-point"><a class="permalink" href="#To-do-at-some-point">#</a><a id="To1"></a>To do at some point</h1> <p>These are ideas that have been regularly tossed around, that most people believe should be done maybe during 5.8.x</p> <h2 id="Remove-regular-expression-recursion"><a class="permalink" href="#Remove-regular-expression-recursion">#</a><a id="Remove"></a>Remove regular expression recursion</h2> <p>Because the regular expression engine is recursive, badly designed expressions can lead to lots of recursion filling up the stack. Ilya claims that it is easy to convert the engine to being iterative, but this has still not yet been done. There may be a regular expression engine hit squad meeting at TPC5.</p> <h2 id="Memory-leaks-after-failed-eval"><a class="permalink" href="#Memory-leaks-after-failed-eval">#</a><a id="Memory"></a>Memory leaks after failed eval</h2> <p>Perl will leak memory if you <code>eval "hlagh hlagh hlagh hlagh"</code>. This is partially because it attempts to build up an op tree for that code and doesn't properly free it. The same goes for non-syntactically-correct regular expressions. Hugo looked into this, but decided it needed a mark-and-sweep GC implementation.</p> <p>Alan notes that: The basic idea was to extend the parser token stack (<code>YYSTYPE</code>) to include a type field so we knew what sort of thing each element of the stack was. The <i>perly.c</i> code would then have to be postprocessed to record the type of each entry on the stack as it was created, and the parser patched so that it could unroll the stack properly on error.</p> <p>This is possible to do, but would be pretty messy to implement, as it would rely on even more sed hackery in <i>perly.fixer</i>.</p> <h2 id="bitfields-in-pack"><a class="permalink" href="#bitfields-in-pack">#</a><a id="bitfields"></a>bitfields in pack</h2> <h2 id="Cross-compilation"><a class="permalink" href="#Cross-compilation">#</a><a id="Cross"></a>Cross compilation</h2> <p>Make Perl buildable with a cross-compiler. This will play havoc with Configure, which needs to know how the target system will respond to its tests; maybe <code>microperl</code> will be a good starting point here. (Indeed, Bart Schuller reports that he compiled up <code>microperl</code> for the Agenda PDA and it works fine.) A really big spanner in the works is the bootstrapping build process of Perl: if the filesystem the target systems sees is not the same what the build host sees, various input, output, and (Perl) library files need to be copied back and forth.</p> <p>As of 5.8.0 Configure mostly works for cross-compilation (used successfully for iPAQ Linux), miniperl gets built, but then building DynaLoader (and other extensions) fails since MakeMaker knows nothing of cross-compilation. (See INSTALL/Cross-compilation for the state of things.)</p> <h2 id="Perl-preprocessor-/-macros"><a class="permalink" href="#Perl-preprocessor-/-macros">#</a><a id="Perl"></a><a id="Perl-preprocessor-macros"></a>Perl preprocessor / macros</h2> <p>Source filters help with this, but do not get us all the way. For instance, it should be possible to implement the <code>??</code> operator somehow; source filters don't (quite) cut it.</p> <h2 id="Perl-lexer-in-Perl"><a class="permalink" href="#Perl-lexer-in-Perl">#</a><a id="Perl1"></a>Perl lexer in Perl</h2> <p>Damian Conway is planning to work on this, but it hasn't happened yet.</p> <h2 id="Using-POSIX-calls-internally"><a class="permalink" href="#Using-POSIX-calls-internally">#</a><a id="Using"></a>Using POSIX calls internally</h2> <p>When faced with a BSD vs. SysV -style interface to some library or system function, perl's roots show in that it typically prefers the BSD interface (but falls back to the SysV one). One example is getpgrp(). Other examples include <code>memcpy</code> vs. <code>bcopy</code>. There are others, mostly in <i>pp_sys.c</i>.</p> <p>Mostly, this item is a suggestion for which way to start a journey into an <code>#ifdef</code> forest. It is not primarily a suggestion to eliminate any of the <code>#ifdef</code> forests.</p> <p>POSIX calls are perhaps more likely to be portable to unexpected architectures. They are also perhaps more likely to be actively maintained by a current vendor. They are also perhaps more likely to be available in thread-safe versions, if appropriate.</p> <h2 id="-i-rename-file-when-changed"><a class="permalink" href="#-i-rename-file-when-changed">#</a><a id="i-rename-file-when-changed"></a>-i rename file when changed</h2> <p>It's only necessary to rename a file when inplace editing when the file has changed. Detecting a change is perhaps the difficult bit.</p> <h2 id="All-ARGV-input-should-act-like-<>"><a class="permalink" href="#All-ARGV-input-should-act-like-%3C%3E">#</a><a id="All"></a><a id="All-ARGV-input-should-act-like"></a>All ARGV input should act like <></h2> <p>eg <code>read(ARGV, ...)</code> doesn't currently read across multiple files.</p> <h2 id="Support-for-rerunning-debugger"><a class="permalink" href="#Support-for-rerunning-debugger">#</a><a id="Support1"></a>Support for rerunning debugger</h2> <p>There should be a way of restarting the debugger on demand.</p> <h2 id="Test-Suite-for-the-Debugger"><a class="permalink" href="#Test-Suite-for-the-Debugger">#</a><a id="Test"></a>Test Suite for the Debugger</h2> <p>The debugger is a complex piece of software and fixing something here may inadvertently break something else over there. To tame this chaotic behaviour, a test suite is necessary.</p> <h2 id="my-sub-foo-{-}"><a class="permalink" href="#my-sub-foo-%7B-%7D">#</a><a id="my"></a><a id="my-sub-foo"></a>my sub foo { }</h2> <p>The basic principle is sound, but there are problems with the semantics of self-referential and mutually referential lexical subs: how to declare the subs?</p> <h2 id="One-pass-global-destruction"><a class="permalink" href="#One-pass-global-destruction">#</a><a id="One"></a>One-pass global destruction</h2> <p>Sweeping away all the allocated memory in one go is a laudable goal, but it's difficult and in most cases, it's easier to let the memory get freed by exiting.</p> <h2 id="Rewrite-regexp-parser"><a class="permalink" href="#Rewrite-regexp-parser">#</a><a id="Rewrite1"></a>Rewrite regexp parser</h2> <p>There has been talk recently of rewriting the regular expression parser to produce an optree instead of a chain of opcodes; it's unclear whether or not this would be a win.</p> <h2 id="Cache-recently-used-regexps"><a class="permalink" href="#Cache-recently-used-regexps">#</a><a id="Cache"></a>Cache recently used regexps</h2> <p>This is to speed up</p> <pre><code>for my $re (@regexps) { $matched++ if /$re/ }</code></pre> <p><code>qr//</code> already gives us a way of saving compiled regexps, but it should be done automatically.</p> <h2 id="Cross-compilation-support"><a class="permalink" href="#Cross-compilation-support">#</a><a id="Cross1"></a>Cross-compilation support</h2> <p>Bart Schuller reports that using <code>microperl</code> and a cross-compiler, he got Perl working on the Agenda PDA. However, one cannot build a full Perl because Configure needs to get the results for the target platform, for the host.</p> <h2 id="Bit-shifting-bitvectors"><a class="permalink" href="#Bit-shifting-bitvectors">#</a><a id="Bit"></a>Bit-shifting bitvectors</h2> <p>Given:</p> <pre><code>vec($v, 1000, 1) = 1;</code></pre> <p>One should be able to do</p> <pre><code>$v <<= 1;</code></pre> <p>and have the 999'th bit set.</p> <p>Currently if you try with shift bitvectors you shift the NV/UV, instead of the bits in the PV. Not very logical.</p> <h2 id="debugger-pragma"><a class="permalink" href="#debugger-pragma">#</a><a id="debugger"></a>debugger pragma</h2> <p>The debugger is implemented in Perl in <i>perl5db.pl</i>; turning it into a pragma should be easy, but making it work lexically might be more difficult. Fiddling with <code>$^P</code> would be necessary.</p> <h2 id="use-less-pragma"><a class="permalink" href="#use-less-pragma">#</a><a id="use"></a>use less pragma</h2> <p>Identify areas where speed/memory tradeoffs can be made and have a hint to switch between them.</p> <h2 id="switch-structures"><a class="permalink" href="#switch-structures">#</a><a id="switch"></a>switch structures</h2> <p>Although we have <code>Switch.pm</code> in core, Larry points to the dormant <code>nswitch</code> and <code>cswitch</code> ops in <i>pp.c</i>; using these opcodes would be much faster.</p> <h2 id="Cache-eval-tree"><a class="permalink" href="#Cache-eval-tree">#</a><a id="Cache1"></a>Cache eval tree</h2> <h2 id="rcatmaybe"><a class="permalink" href="#rcatmaybe">#</a>rcatmaybe</h2> <h2 id="Shrink-opcode-tables"><a class="permalink" href="#Shrink-opcode-tables">#</a><a id="Shrink"></a>Shrink opcode tables</h2> <h2 id="Optimize-away-@_"><a class="permalink" href="#Optimize-away-@_">#</a><a id="Optimize"></a><a id="Optimize-away-_"></a>Optimize away @_</h2> <p>Look at the "reification" code in <code>av.c</code></p> <h2 id="Prototypes-versus-indirect-objects"><a class="permalink" href="#Prototypes-versus-indirect-objects">#</a><a id="Prototypes"></a>Prototypes versus indirect objects</h2> <p>Currently, indirect object syntax bypasses prototype checks.</p> <h2 id="Install-HTML"><a class="permalink" href="#Install-HTML">#</a><a id="Install"></a>Install HTML</h2> <p>HTML versions of the documentation need to be installed by default; a call to <code>installhtml</code> from <code>installperl</code> may be all that's necessary.</p> <h2 id="Prototype-method-calls"><a class="permalink" href="#Prototype-method-calls">#</a><a id="Prototype"></a>Prototype method calls</h2> <h2 id="Return-context-prototype-declarations"><a class="permalink" href="#Return-context-prototype-declarations">#</a><a id="Return"></a>Return context prototype declarations</h2> <h2 id="magic_setisa"><a class="permalink" href="#magic_setisa">#</a>magic_setisa</h2> <h2 id="Garbage-collection"><a class="permalink" href="#Garbage-collection">#</a><a id="Garbage"></a>Garbage collection</h2> <p>There have been persistent mumblings about putting a mark-and-sweep garbage detector into Perl; Alan Burlison has some ideas about this.</p> <h2 id="IO-tutorial"><a class="permalink" href="#IO-tutorial">#</a><a id="IO"></a>IO tutorial</h2> <p>Mark-Jason Dominus has the beginnings of one of these.</p> <h2 id="Rewrite-perldoc"><a class="permalink" href="#Rewrite-perldoc">#</a><a id="Rewrite2"></a>Rewrite perldoc</h2> <p>There are a few suggestions for what to do with <code>perldoc</code>: maybe a full-text search, an index function, locating pages on a particular high-level subject, and so on.</p> <h2 id="Install-.3p-manpages"><a class="permalink" href="#Install-.3p-manpages">#</a><a id="Install1"></a>Install .3p manpages</h2> <p>This is a bone of contention; we can create <code>.3p</code> manpages for each built-in function, but should we install them by default? Tcl does this, and it clutters up <code>apropos</code>.</p> <h2 id="Unicode-tutorial"><a class="permalink" href="#Unicode-tutorial">#</a><a id="Unicode1"></a>Unicode tutorial</h2> <p>Simon Cozens promises to do this before he gets old.</p> <h2 id="Update-POSIX.pm-for-1003.1-2"><a class="permalink" href="#Update-POSIX.pm-for-1003.1-2">#</a><a id="Update"></a>Update POSIX.pm for 1003.1-2</h2> <h2 id="Retargetable-installation"><a class="permalink" href="#Retargetable-installation">#</a><a id="Retargetable"></a>Retargetable installation</h2> <p>Allow <code>@INC</code> to be changed after Perl is built.</p> <h2 id="POSIX-emulation-on-non-POSIX-systems"><a class="permalink" href="#POSIX-emulation-on-non-POSIX-systems">#</a><a id="POSIX2"></a>POSIX emulation on non-POSIX systems</h2> <p>Make <code>POSIX.pm</code> behave as POSIXly as possible everywhere, meaning we have to implement POSIX equivalents for some functions if necessary.</p> <h2 id="Rename-Win32-headers"><a class="permalink" href="#Rename-Win32-headers">#</a><a id="Rename"></a>Rename Win32 headers</h2> <h2 id="Finish-off-lvalue-functions"><a class="permalink" href="#Finish-off-lvalue-functions">#</a><a id="Finish"></a>Finish off lvalue functions</h2> <p>They don't work in the debugger, and they don't work for list or hash slices.</p> <h2 id="Update-sprintf-documentation"><a class="permalink" href="#Update-sprintf-documentation">#</a><a id="Update1"></a>Update sprintf documentation</h2> <p>Hugo van der Sanden plans to look at this.</p> <h2 id="Use-fchown/fchmod-internally"><a class="permalink" href="#Use-fchown/fchmod-internally">#</a><a id="Use"></a><a id="Use-fchown-fchmod-internally"></a>Use fchown/fchmod internally</h2> <p>This has been done in places, but needs a thorough code review. Also fchdir is available in some platforms.</p> <h2 id="Make-v-strings-overloaded-objects"><a class="permalink" href="#Make-v-strings-overloaded-objects">#</a><a id="Make2"></a>Make v-strings overloaded objects</h2> <p>Instead of having to guess whether a string is a v-string and thus needs to be displayed with %vd, make v-strings (readonly) objects (class "vstring"?) with a stringify overload.</p> <h2 id="Allow-restricted-hash-assignment"><a class="permalink" href="#Allow-restricted-hash-assignment">#</a><a id="Allow"></a>Allow restricted hash assignment</h2> <p>Currently you're not allowed to assign to a restricted hash at all, even with the same keys.</p> <pre><code>%restricted = (foo => 42); # error</code></pre> <p>This should be allowed if the new keyset is a subset of the old keyset. May require more extra code than we'd like in pp_aassign.</p> <h2 id="Should-overload-be-inheritable?"><a class="permalink" href="#Should-overload-be-inheritable?">#</a><a id="Should"></a><a id="Should-overload-be-inheritable"></a>Should overload be inheritable?</h2> <p>Should overload be 'contagious' through @ISA so that derived classes would inherit their base classes' overload definitions? What to do in case of overload conflicts?</p> <h2 id="Taint-rethink"><a class="permalink" href="#Taint-rethink">#</a><a id="Taint"></a>Taint rethink</h2> <p>Should taint be stopped from affecting control flow, if ($tainted)? Should tainted symbolic method calls and subref calls be stopped? (Look at Ruby's $SAFE levels for inspiration?)</p> <h2 id="Perform-correctly-when-XSUBs-call-subroutines-that-exit-via-goto(LABEL)-and-friends"><a class="permalink" href="#Perform-correctly-when-XSUBs-call-subroutines-that-exit-via-goto(LABEL)-and-friends">#</a><a id="Perform"></a><a id="Perform-correctly-when-XSUBs-call-subroutines-that-exit-via-goto-LABEL-and-friends"></a>Perform correctly when XSUBs call subroutines that exit via goto(LABEL) and friends</h2> <p>If an XSUB calls a subroutine that exits using goto(LABEL), last(LABEL) or next(LABEL), then the interpreter will very probably crash with a segfault because the execution resumes in the XSUB instead of never returning there.</p> <h1 id="Vague-ideas"><a class="permalink" href="#Vague-ideas">#</a><a id="Vague"></a>Vague ideas</h1> <p>Ideas which have been discussed, and which may or may not happen.</p> <h2 id="ref()-in-list-context"><a class="permalink" href="#ref()-in-list-context">#</a><a id="ref"></a><a id="ref-in-list-context"></a>ref() in list context</h2> <p>It's unclear what this should do or how to do it without breaking old code.</p> <h2 id="Make-tr///-return-histogram-of-characters-in-list-context"><a class="permalink" href="#Make-tr///-return-histogram-of-characters-in-list-context">#</a><a id="Make3"></a><a id="Make-tr-return-histogram-of-characters-in-list-context"></a>Make tr/// return histogram of characters in list context</h2> <p>There is a patch for this, but it may require Unicodification.</p> <h2 id="Compile-to-real-threaded-code"><a class="permalink" href="#Compile-to-real-threaded-code">#</a><a id="Compile"></a>Compile to real threaded code</h2> <h2 id="Structured-types"><a class="permalink" href="#Structured-types">#</a><a id="Structured"></a>Structured types</h2> <h2 id="Modifiable-$1-et-al."><a class="permalink" href="#Modifiable-$1-et-al.">#</a><a id="Modifiable"></a><a id="Modifiable-1-et-al"></a>Modifiable $1 et al.</h2> <pre><code>($x = "elephant") =~ /e(ph)/; $1 = "g"; # $x = "elegant"</code></pre> <p>What happens if there are multiple (nested?) brackets? What if the string changes between the match and the assignment?</p> <h2 id="Procedural-interfaces-for-IO::*,-etc."><a class="permalink" href="#Procedural-interfaces-for-IO::*,-etc.">#</a><a id="Procedural"></a><a id="Procedural-interfaces-for-IO::-etc"></a>Procedural interfaces for IO::*, etc.</h2> <p>Some core modules have been accused of being overly-OO. Adding procedural interfaces could demystify them.</p> <h2 id="RPC-modules"><a class="permalink" href="#RPC-modules">#</a><a id="RPC"></a>RPC modules</h2> <h2 id="Attach/detach-debugger-from-running-program"><a class="permalink" href="#Attach/detach-debugger-from-running-program">#</a><a id="Attach"></a><a id="Attach-detach-debugger-from-running-program"></a>Attach/detach debugger from running program</h2> <p>With <code>gdb</code>, you can attach the debugger to a running program if you pass the process ID. It would be good to do this with the Perl debugger on a running Perl program, although I'm not sure how it would be done.</p> <h2 id="GUI::Native"><a class="permalink" href="#GUI::Native">#</a><a id="GUI"></a>GUI::Native</h2> <p>A non-core module that would use "native" GUI to create graphical applications.</p> <h2 id="foreach(reverse-...)"><a class="permalink" href="#foreach(reverse-...)">#</a><a id="foreach"></a><a id="foreach-reverse"></a>foreach(reverse ...)</h2> <p>Currently</p> <pre><code>foreach (reverse @_) { ... }</code></pre> <p>puts <code>@_</code> on the stack, reverses it putting the reversed version on the stack, then iterates forwards. Instead, it could be special-cased to put <code>@_</code> on the stack then iterate backwards.</p> <h2 id="Constant-function-cache"><a class="permalink" href="#Constant-function-cache">#</a><a id="Constant"></a>Constant function cache</h2> <h2 id="Approximate-regular-expression-matching"><a class="permalink" href="#Approximate-regular-expression-matching">#</a><a id="Approximate"></a>Approximate regular expression matching</h2> <h1 id="Ongoing"><a class="permalink" href="#Ongoing">#</a>Ongoing</h1> <p>These items <b>always</b> need doing:</p> <h2 id="Update-guts-documentation"><a class="permalink" href="#Update-guts-documentation">#</a><a id="Update2"></a>Update guts documentation</h2> <p>Simon Cozens tries to do this when possible, and contributions to the <code>perlapi</code> documentation is welcome.</p> <h2 id="Add-more-tests"><a class="permalink" href="#Add-more-tests">#</a><a id="Add"></a>Add more tests</h2> <p>Michael Schwern will donate $500 to Yet Another Society when all core modules have tests.</p> <h2 id="Update-auxiliary-tools"><a class="permalink" href="#Update-auxiliary-tools">#</a><a id="Update3"></a>Update auxiliary tools</h2> <p>The code we ship with Perl should look like good Perl 5.</p> <h2 id="Create-debugging-macros"><a class="permalink" href="#Create-debugging-macros">#</a><a id="Create1"></a>Create debugging macros</h2> <p>Debugging macros (like printsv, dump) can make debugging perl inside a C debugger much easier. A good set for gdb comes with mod_perl. Something similar should be distributed with perl.</p> <p>The proper way to do this is to use and extend Devel::DebugInit. Devel::DebugInit also needs to be extended to support threads.</p> <p>See p5p archives for late May/early June 2001 for a recent discussion on this topic.</p> <h2 id="truncate-to-the-people"><a class="permalink" href="#truncate-to-the-people">#</a><a id="truncate"></a>truncate to the people</h2> <p>One can emulate ftruncate() using F_FREESP and F_CHSIZ fcntls (see the UNIX FAQ for details). This needs to go somewhere near pp_sys.c:pp_truncate().</p> <p>One can emulate truncate() easily if one has ftruncate(). This emulation should also go near pp_sys.pp_truncate().</p> <h2 id="Unicode-in-Filenames"><a class="permalink" href="#Unicode-in-Filenames">#</a><a id="Unicode2"></a>Unicode in Filenames</h2> <p>chdir, chmod, chown, chroot, exec, glob, link, lstat, mkdir, open, opendir, qx, readdir, readlink, rename, rmdir, stat, symlink, sysopen, system, truncate, unlink, utime. All these could potentially accept Unicode filenames either as input or output (and in the case of system and qx Unicode in general, as input or output to/from the shell). Whether a filesystem - an operating system pair understands Unicode in filenames varies.</p> <p>Known combinations that have some level of understanding include Microsoft NTFS, Apple HFS+ (In Mac OS 9 and X) and Apple UFS (in Mac OS X), NFS v4 is rumored to be Unicode, and of course Plan 9. How to create Unicode filenames, what forms of Unicode are accepted and used (UCS-2, UTF-16, UTF-8), what (if any) is the normalization form used, and so on, varies. Finding the right level of interfacing to Perl requires some thought. Remember that an OS does not implicate a filesystem.</p> <p>(The Windows -C command flag "wide API support" has been at least temporarily retired in 5.8.1, and the -C has been repurposed, see <a href="/5.8.1/perlrun">perlrun</a>.)</p> <h1 id="Unicode-in-%ENV"><a class="permalink" href="#Unicode-in-%25ENV">#</a><a id="Unicode3"></a><a id="Unicode-in-ENV"></a>Unicode in %ENV</h1> <p>Currently the %ENV entries are always byte strings.</p> <h1 id="Recently-done-things"><a class="permalink" href="#Recently-done-things">#</a><a id="Recently"></a>Recently done things</h1> <p>These are things which have been on the todo lists in previous releases but have recently been completed.</p> <h2 id="Alternative-RE-syntax-module"><a class="permalink" href="#Alternative-RE-syntax-module">#</a><a id="Alternative"></a>Alternative RE syntax module</h2> <p>The <code>Regexp::English</code> module, available from the CPAN, provides this:</p> <pre><code>my $re = Regexp::English -> start_of_line -> literal('Flippers') -> literal(':') -> optional -> whitespace_char -> end -> remember -> multiple -> digit; /$re/;</code></pre> <h2 id="Safe-signal-handling"><a class="permalink" href="#Safe-signal-handling">#</a><a id="Safe"></a>Safe signal handling</h2> <p>A new signal model went into 5.7.1 without much fanfare. Operations and <code>malloc</code>s are no longer interrupted by signals, which are handled between opcodes. This means that <code>PERL_ASYNC_CHECK</code> now actually does something. However, there are still a few things that need to be done.</p> <h2 id="Tie-Modules"><a class="permalink" href="#Tie-Modules">#</a><a id="Tie"></a>Tie Modules</h2> <p>Modules which implement arrays in terms of strings, substrings or files can be found on the CPAN.</p> <h2 id="gettimeofday"><a class="permalink" href="#gettimeofday">#</a>gettimeofday</h2> <p><code>Time::HiRes</code> has been integrated into the core.</p> <h2 id="setitimer-and-getimiter"><a class="permalink" href="#setitimer-and-getimiter">#</a><a id="setitimer"></a>setitimer and getimiter</h2> <p>Adding <code>Time::HiRes</code> got us this too.</p> <h2 id="Testing-__DIE__-hook"><a class="permalink" href="#Testing-__DIE__-hook">#</a><a id="Testing"></a>Testing __DIE__ hook</h2> <p>Tests have been added.</p> <h2 id="CPP-equivalent-in-Perl"><a class="permalink" href="#CPP-equivalent-in-Perl">#</a><a id="CPP"></a>CPP equivalent in Perl</h2> <p>A C Yardley will probably have done this by the time you can read this. This allows for a generalization of the C constant detection used in building <code>Errno.pm</code>.</p> <h2 id="Explicit-switch-statements"><a class="permalink" href="#Explicit-switch-statements">#</a><a id="Explicit"></a>Explicit switch statements</h2> <p><code>Switch.pm</code> has been integrated into the core to give you all manner of <code>switch...case</code> semantics.</p> <h2 id="autocroak"><a class="permalink" href="#autocroak">#</a>autocroak</h2> <p>This is <code>Fatal.pm</code>.</p> <h2 id="UTF/EBCDIC"><a class="permalink" href="#UTF/EBCDIC">#</a><a id="UTF"></a><a id="UTF-EBCDIC"></a>UTF/EBCDIC</h2> <p>Nick Ing-Simmons has made UTF-EBCDIC (UTR13) work with Perl.</p> <pre><code class="plaintext">EBCDIC? http://www.unicode.org/unicode/reports/tr16/</code></pre> <h2 id="UTF-Regexes"><a class="permalink" href="#UTF-Regexes">#</a><a id="UTF1"></a>UTF Regexes</h2> <p>Although there are probably some small bugs to be rooted out, Jarkko Hietaniemi has made regular expressions polymorphic between bytes and characters.</p> <h2 id="perlcc-to-produce-executable"><a class="permalink" href="#perlcc-to-produce-executable">#</a><a id="perlcc"></a>perlcc to produce executable</h2> <p><code>perlcc</code> was recently rewritten, and can now produce standalone executables.</p> <h2 id="END-blocks-saved-in-compiled-output"><a class="permalink" href="#END-blocks-saved-in-compiled-output">#</a><a id="END"></a>END blocks saved in compiled output</h2> <h2 id="Secure-temporary-file-module"><a class="permalink" href="#Secure-temporary-file-module">#</a><a id="Secure"></a>Secure temporary file module</h2> <p>Tim Jenness' <code>File::Temp</code> is now in core.</p> <h2 id="Integrate-Time::HiRes"><a class="permalink" href="#Integrate-Time::HiRes">#</a><a id="Integrate"></a>Integrate Time::HiRes</h2> <p>This module is now part of core.</p> <h2 id="Turn-Cwd-into-XS"><a class="permalink" href="#Turn-Cwd-into-XS">#</a><a id="Turn"></a>Turn Cwd into XS</h2> <p>Benjamin Sugars has done this.</p> <h2 id="Mmap-for-input"><a class="permalink" href="#Mmap-for-input">#</a><a id="Mmap"></a>Mmap for input</h2> <p>Nick Ing-Simmons' <code>perlio</code> supports an <code>mmap</code> IO method.</p> <h2 id="Byte-to/from-UTF-8-and-UTF-8-to/from-local-conversion"><a class="permalink" href="#Byte-to/from-UTF-8-and-UTF-8-to/from-local-conversion">#</a><a id="Byte"></a><a id="Byte-to-from-UTF-8-and-UTF-8-to-from-local-conversion"></a>Byte to/from UTF-8 and UTF-8 to/from local conversion</h2> <p><code>Encode</code> provides this.</p> <h2 id="Add-sockatmark-support"><a class="permalink" href="#Add-sockatmark-support">#</a><a id="Add1"></a>Add sockatmark support</h2> <p>Added in 5.7.1</p> <h2 id="Mailing-list-archives"><a class="permalink" href="#Mailing-list-archives">#</a><a id="Mailing"></a>Mailing list archives</h2> <p>http://lists.perl.org/ , http://archive.develooper.com/</p> <h2 id="Bug-tracking"><a class="permalink" href="#Bug-tracking">#</a><a id="Bug"></a>Bug tracking</h2> <p>Since 5.8.0 perl uses the RT bug tracking system from Jesse Vincent, implemented by Robert Spier at http://bugs.perl.org/</p> <h2 id="Integrate-MacPerl"><a class="permalink" href="#Integrate-MacPerl">#</a><a id="Integrate1"></a>Integrate MacPerl</h2> <p>Chris Nandor and Matthias Neeracher have integrated the MacPerl changes into 5.6.0.</p> <h2 id="Web-"nerve-center"-for-Perl"><a class="permalink" href="#Web-%22nerve-center%22-for-Perl">#</a><a id="Web"></a><a id="Web-nerve-center-for-Perl"></a>Web "nerve center" for Perl</h2> <p>http://use.perl.org/ is what you're looking for.</p> <h2 id="Regular-expression-tutorial"><a class="permalink" href="#Regular-expression-tutorial">#</a><a id="Regular"></a>Regular expression tutorial</h2> <p><code>perlretut</code>, provided by Mark Kvale.</p> <h2 id="Debugging-Tutorial"><a class="permalink" href="#Debugging-Tutorial">#</a><a id="Debugging"></a>Debugging Tutorial</h2> <p><code>perldebtut</code>, written by Richard Foley.</p> <h2 id="Integrate-new-modules"><a class="permalink" href="#Integrate-new-modules">#</a><a id="Integrate2"></a>Integrate new modules</h2> <p>Jarkko has been integrating madly into 5.7.x</p> <h2 id="Integrate-profiler"><a class="permalink" href="#Integrate-profiler">#</a><a id="Integrate3"></a>Integrate profiler</h2> <p><code>Devel::DProf</code> is now a core module.</p> <h2 id="Y2K-error-detection"><a class="permalink" href="#Y2K-error-detection">#</a><a id="Y2K"></a>Y2K error detection</h2> <p>There's a configure option to detect unsafe concatenation with "19", and a CPAN module. (<code>D'oh::Year</code>)</p> <h2 id="Regular-expression-debugger"><a class="permalink" href="#Regular-expression-debugger">#</a><a id="Regular1"></a>Regular expression debugger</h2> <p>While not part of core, Mark-Jason Dominus has written <code>Rx</code> and has also come up with a generalised strategy for regular expression debugging.</p> <h2 id="POD-checker"><a class="permalink" href="#POD-checker">#</a><a id="POD"></a>POD checker</h2> <p>That's, uh, <i>podchecker</i></p> <h2 id=""Dynamic"-lexicals"><a class="permalink" href="#%22Dynamic%22-lexicals">#</a><a id="Dynamic-lexicals"></a>"Dynamic" lexicals</h2> <h2 id="Cache-precompiled-modules"><a class="permalink" href="#Cache-precompiled-modules">#</a><a id="Cache2"></a>Cache precompiled modules</h2> <h1 id="Deprecated-Wishes"><a class="permalink" href="#Deprecated-Wishes">#</a><a id="Deprecated"></a>Deprecated Wishes</h1> <p>These are items which used to be in the todo file, but have been deprecated for some reason.</p> <h2 id="Loop-control-on-do{}"><a class="permalink" href="#Loop-control-on-do%7B%7D">#</a><a id="Loop"></a><a id="Loop-control-on-do"></a>Loop control on do{}</h2> <p>This would break old code; use <code>do{{ }}</code> instead.</p> <h2 id="Lexically-scoped-typeglobs"><a class="permalink" href="#Lexically-scoped-typeglobs">#</a><a id="Lexically"></a>Lexically scoped typeglobs</h2> <p>Not needed now we have lexical IO handles.</p> <h2 id="format-BOTTOM"><a class="permalink" href="#format-BOTTOM">#</a><a id="format"></a>format BOTTOM</h2> <h2 id="report-HANDLE"><a class="permalink" href="#report-HANDLE">#</a><a id="report"></a>report HANDLE</h2> <p>Damian Conway's text formatting modules seem to be the Way To Go.</p> <h2 id="Generalised-want()/caller())"><a class="permalink" href="#Generalised-want()/caller())">#</a><a id="Generalised"></a><a id="Generalised-want-caller"></a>Generalised want()/caller())</h2> <p>Robin Houston's <code>Want</code> module does this.</p> <h2 id="Named-prototypes"><a class="permalink" href="#Named-prototypes">#</a><a id="Named"></a>Named prototypes</h2> <p>This seems to be delayed until Perl 6.</p> <h2 id="Built-in-globbing"><a class="permalink" href="#Built-in-globbing">#</a><a id="Built"></a>Built-in globbing</h2> <p>The <code>File::Glob</code> module has been used to replace the <code>glob</code> function.</p> <h2 id="Regression-tests-for-suidperl"><a class="permalink" href="#Regression-tests-for-suidperl">#</a><a id="Regression"></a>Regression tests for suidperl</h2> <p><code>suidperl</code> is deprecated in favour of common sense.</p> <h2 id="Cached-hash-values"><a class="permalink" href="#Cached-hash-values">#</a><a id="Cached"></a>Cached hash values</h2> <p>We have shared hash keys, which perform the same job.</p> <h2 id="Add-compression-modules"><a class="permalink" href="#Add-compression-modules">#</a><a id="Add2"></a>Add compression modules</h2> <p>The compression modules are a little heavy; meanwhile, Nick Clark is working on experimental pragmata to do transparent decompression on input.</p> <h2 id="Reorganise-documentation-into-tutorials/references"><a class="permalink" href="#Reorganise-documentation-into-tutorials/references">#</a><a id="Reorganise"></a><a id="Reorganise-documentation-into-tutorials-references"></a>Reorganise documentation into tutorials/references</h2> <p>Could not get consensus on P5P about this.</p> <h2 id="Remove-distinction-between-functions-and-operators"><a class="permalink" href="#Remove-distinction-between-functions-and-operators">#</a><a id="Remove1"></a>Remove distinction between functions and operators</h2> <p>Caution: highly flammable.</p> <h2 id="Make-XS-easier-to-use"><a class="permalink" href="#Make-XS-easier-to-use">#</a><a id="Make4"></a>Make XS easier to use</h2> <p>Use <code>Inline</code> instead, or SWIG.</p> <h2 id="Make-embedding-easier-to-use"><a class="permalink" href="#Make-embedding-easier-to-use">#</a><a id="Make5"></a>Make embedding easier to use</h2> <p>Use <code>Inline::CPR</code>.</p> <h2 id="man-for-perl"><a class="permalink" href="#man-for-perl">#</a><a id="man"></a>man for perl</h2> <p>See the Perl Power Tools. ( http://language.perl.com/ppt/ )</p> <h2 id="my-$Package::variable"><a class="permalink" href="#my-$Package::variable">#</a><a id="my1"></a><a id="my-Package::variable"></a>my $Package::variable</h2> <p>Use <code>our</code> instead.</p> <h2 id=""or"-tests-defined,-not-truth"><a class="permalink" href="#%22or%22-tests-defined,-not-truth">#</a><a id="or-tests-defined-not-truth"></a>"or" tests defined, not truth</h2> <p>Suggesting this on P5P <b>will</b> cause a boring and interminable flamewar.</p> <h2 id=""class"-based-lexicals"><a class="permalink" href="#%22class%22-based-lexicals">#</a><a id="class-based-lexicals"></a>"class"-based lexicals</h2> <p>Use flyweight objects, secure hashes or, dare I say it, pseudo-hashes instead. (Or whatever will replace pseudohashes in 5.10.)</p> <h2 id="byteperl"><a class="permalink" href="#byteperl">#</a>byteperl</h2> <p><code>ByteLoader</code> covers this.</p> <h2 id="Lazy-evaluation-/-tail-recursion-removal"><a class="permalink" href="#Lazy-evaluation-/-tail-recursion-removal">#</a><a id="Lazy"></a><a id="Lazy-evaluation-tail-recursion-removal"></a>Lazy evaluation / tail recursion removal</h2> <p><code>List::Util</code> gives first() (a short-circuiting grep); tail recursion removal is done manually, with <code>goto &whoami;</code>. (However, MJD has found that <code>goto &whoami</code> introduces a performance penalty, so maybe there should be a way to do this after all: <code>sub foo {START: ... goto START;</code> is better.)</p> <h2 id="Make-"use-utf8"-the-default"><a class="permalink" href="#Make-%22use-utf8%22-the-default">#</a><a id="Make6"></a><a id="Make-use-utf8-the-default"></a>Make "use utf8" the default</h2> <p>Because of backward compatibility this is difficult: scripts could not contain <b>any legacy eight-bit data</b> (like Latin-1) anymore, even in string literals or pod. Also would introduce a measurable slowdown of at least few percentages since all regular expression operations would be done in full UTF-8. But if you want to try this, add -DUSE_UTF8_SCRIPTS to your compilation flags.</p> <h2 id="Unicode-collation-and-normalization"><a class="permalink" href="#Unicode-collation-and-normalization">#</a><a id="Unicode4"></a>Unicode collation and normalization</h2> <p>The Unicode::Collate and Unicode::Normalize modules by SADAHIRO Tomoyuki have been included since 5.8.0.</p> <pre><code class="plaintext">Collation? http://www.unicode.org/unicode/reports/tr10/ Normalization? http://www.unicode.org/unicode/reports/tr15/</code></pre> <h2 id="pack/unpack-tutorial"><a class="permalink" href="#pack/unpack-tutorial">#</a><a id="pack"></a><a id="pack-unpack-tutorial"></a>pack/unpack tutorial</h2> <p>Wolfgang Laun finished what Simon Cozens started.</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>