From 4f46c6511b0216102dc51414401fc20bff74a88b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 26 Aug 2024 22:05:21 +0200 Subject: [PATCH] perl: mention breaking changes and feature removals --- perl.inc.pl | 3 +++ perl.plp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/perl.inc.pl b/perl.inc.pl index f6f2b3f..3ee4eb4 100644 --- a/perl.inc.pl +++ b/perl.inc.pl @@ -192,6 +192,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}"; v5.16 => { new => [ + ["no feature ${wbr}'array_base'", 'disables $[ to alter the 0 index of the first array element or substring character', {bundle => 0, dropped => v5.30}], ['__SUB__', 'current subroutine reference', {feature => 'current_sub'}], ['fc, "\F"', 'unicode foldcase to compare case-insensitively', {feature => 'fc'}], ['"\N{}"', 'automatic use charnames qw( :full :short )'], @@ -208,6 +209,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}"; v5.18 => { new => [ + ['PERL_PERTURB_KEYS=1', 'hash overhaul; order is randomised instead of being semi-repeatable', {eg => 'each %{{%hash}} ne each %{{%hash}}'}], ['${^LAST_FH}', 'last read filehandle (used by $.)'], ['/(?[ a + b ])/', 'regex set operations (character subtraction -, union +, intersection &, xor ^)', {experimental => 'regex_sets', stable => v5.36}], ['my sub', 'lexical subroutines (also state, our); buggy before v5.22', {experimental => 'lexical_subs', stable => v5.26}], @@ -280,6 +282,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}"; v5.26 => { new => [ + ["use lib '.'", 'current directory no longer included in default module search path @INC'], ['<<~EOT', 'indented here-docs, strips same whitespace before delimiter in each line'], ['@{^CAPTURE}', q"array of last match's captures, so ${^CAPTURE}[0] is $1"], ['//xx', 'extended modifier to also ignore whitespace in bracketed character classes'], diff --git a/perl.plp b/perl.plp index d6dfd9d..8a5e7bb 100644 --- a/perl.plp +++ b/perl.plp @@ -2,7 +2,7 @@ Html({ title => 'perl version cheat sheet', - version => '1.9', + version => '1.10', keywords => [qw' perl version feature features comparison sheet cheat overview summary -- 2.30.2