perl: 5.38 release
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 1 Jun 2023 16:44:53 +0000 (18:44 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 4 Jul 2023 12:04:20 +0000 (14:04 +0200)
perl.inc.pl

index e1ed0e6d23268278f4564dad685180f3063c6890..ea1eb82f40c06da833abacf756b92b9494946cbb 100644 (file)
@@ -381,8 +381,24 @@ use strict;
                unicode => '14.0',
                release => '2022-05-28',
                distro => {
-                       debian => '12', # bookworm 2023 upcoming
+                       debian => '12', # bookworm 2023-06
                        ubuntu => '23.04', # lunar upcoming
                },
        },
+
+       v5.38 => {
+               new => [
+                       ['<code>use feature "module_true"</code>', 'default in use 5.37 and up, also <code>no feature "bareword_filehandles"</code>'],
+                       ['<code>sub ($var ||=</code> default<code>)</code>', 'assign values when false (or undefined on <code>//=</code>) instead of omitted'],
+                       ['<code>/(*{ … })/</code>', 'optimistic eval: <code>(?{ … })</code> with regex optimisations enabled'],
+                       ['<code>class</code>', "define object classes: packages with <code>field</code> variables and <code>method</code> subroutines", {feature => 'class', experimental => 'class'}],
+                       ['<code>${^LAST_<wbr>SUCCESSFUL_<wbr>PATTERN}</code>', 'explicit variable to access the previous match as in <code>s//…/</code>'],
+                       ['<code>%{^HOOK}</code>', "perform tasks <code>require__before</code> and <code>require__after</code> when calling <code>require</code>"], # also @INC hook enhancements
+                       ['<code>PERL_RAND_<wbr>SEED</code>', 'environment variable to set <code>srand</code> random number seed', {dropped => 0}],
+                       ['<code>is_tainted</code>', '<code>builtin</code> function to check variable tainting like <code>Scalar::Util::tainted</code>', {dropped => 0, experimental => 'builtin', eg => 'builtin::is_tainted($ENV{PWD}) and say "running perl -T"'}],
+                       ['<code>export_lexically</code>', '<code>builtin</code> function to export named functions into the calling scope', {dropped => 0, experimental => 'builtin', eg => 'method import {builtin::export_lexically {map {$_ => $self->can($_)} @_}}'}],
+               ],
+               unicode => '15.0',
+               release => '2023-07-02',
+       },
 }