perl: mention breaking changes and feature removals
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 26 Aug 2024 20:05:21 +0000 (22:05 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 2 Sep 2024 19:29:58 +0000 (21:29 +0200)
perl.inc.pl
perl.plp

index f6f2b3ff0a546dc1d7942525aac0520130abd2af..3ee4eb4cf11dbee227e1a0ced20c10b81ec73164 100644 (file)
@@ -192,6 +192,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}";
 
        v5.16 => {
                new => [
 
        v5.16 => {
                new => [
+                       ["<code>no feature ${wbr}'array_base'</code>", 'disables <code>$[</code> to alter the 0 index of the first array element or substring character', {bundle => 0, dropped => v5.30}],
                        ['<code>__SUB__</code>', 'current subroutine reference', {feature => 'current_sub'}],
                        ['<code>fc, "\F"</code>', 'unicode foldcase to compare case-insensitively', {feature => 'fc'}],
                        ['<code>"\N{}"</code>', 'automatic <code>use charnames qw( :full :short )</code>'],
                        ['<code>__SUB__</code>', 'current subroutine reference', {feature => 'current_sub'}],
                        ['<code>fc, "\F"</code>', 'unicode foldcase to compare case-insensitively', {feature => 'fc'}],
                        ['<code>"\N{}"</code>', 'automatic <code>use charnames qw( :full :short )</code>'],
@@ -208,6 +209,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}";
 
        v5.18 => {
                new => [
 
        v5.18 => {
                new => [
+                       ['PERL_PERTURB_KEYS=1', 'hash overhaul; order is randomised instead of being semi-repeatable', {eg => 'each %{{%hash}} ne each %{{%hash}}'}],
                        ['<code>${^LAST_FH}</code>', 'last read filehandle (used by <code>$.</code>)'],
                        ['<code>/(?[ a + b ])/</code>', 'regex set operations (character subtraction <code>-</code>, union <code>+</code>, intersection <code>&amp;</code>, xor <code>^</code>)', {experimental => 'regex_sets', stable => v5.36}],
                        ['<code>my sub</code>', 'lexical subroutines (also <code>state</code>, <code>our</code>); buggy before v5.22', {experimental => 'lexical_subs', stable => v5.26}],
                        ['<code>${^LAST_FH}</code>', 'last read filehandle (used by <code>$.</code>)'],
                        ['<code>/(?[ a + b ])/</code>', 'regex set operations (character subtraction <code>-</code>, union <code>+</code>, intersection <code>&amp;</code>, xor <code>^</code>)', {experimental => 'regex_sets', stable => v5.36}],
                        ['<code>my sub</code>', 'lexical subroutines (also <code>state</code>, <code>our</code>); buggy before v5.22', {experimental => 'lexical_subs', stable => v5.26}],
@@ -280,6 +282,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}";
 
        v5.26 => {
                new => [
 
        v5.26 => {
                new => [
+                       ["<code><s>use lib '.'</s></code>", 'current directory no longer included in default module search path <code>@INC</code>'],
                        ['<code>&lt;&lt;~EOT</code>', 'indented here-docs, strips same whitespace before delimiter in each line'],
                        ['<code>@{^CAPTURE}</code>', q"array of last match's captures, so <code>${^CAPTURE}[0]</code> is <code>$1</code>"],
                        ['<code>//xx</code>', 'extended modifier to also ignore whitespace in bracketed character classes'],
                        ['<code>&lt;&lt;~EOT</code>', 'indented here-docs, strips same whitespace before delimiter in each line'],
                        ['<code>@{^CAPTURE}</code>', q"array of last match's captures, so <code>${^CAPTURE}[0]</code> is <code>$1</code>"],
                        ['<code>//xx</code>', 'extended modifier to also ignore whitespace in bracketed character classes'],
index d6dfd9dcff1a3ee9dc47a693d79fb5a03c255f32..8a5e7bb57a06ec8c1ee78df90f26039841992f61 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -2,7 +2,7 @@
 
 Html({
        title => 'perl version cheat sheet',
 
 Html({
        title => 'perl version cheat sheet',
-       version => '1.9',
+       version => '1.10',
        keywords => [qw'
                perl version feature features comparison
                sheet cheat overview summary
        keywords => [qw'
                perl version feature features comparison
                sheet cheat overview summary