From 385813929989c8745b914a7fb4b48384f388c6cb Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 4 Sep 2024 14:22:44 +0200 Subject: [PATCH 1/1] perl: missing minor v5.14 features Triggered by suggestion from u/leonerduk at reddit post . --- perl.inc.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perl.inc.pl b/perl.inc.pl index 9c505df..41903a6 100644 --- a/perl.inc.pl +++ b/perl.inc.pl @@ -146,7 +146,7 @@ my $wbr = "\N{ZERO WIDTH SPACE}"; v5.12 => { new => [ - ['package version', 'package NAME VERSION shorthand for our $VERSION'], + ['package version', 'package NAME VERSION shorthand for our $VERSION'], ['...', 'yada-yada operator: code placeholder'], ['use 5.012', 'implicit strict if use VERSION >= v5.12'], ['… when', 'when is now allowed to be used as a statement modifier'], @@ -173,7 +173,9 @@ my $wbr = "\N{ZERO WIDTH SPACE}"; [q"use re '/flags'", 'customise default modifiers'], ['/(?^)/', 'construct to reset to default modifiers'], ['FH->method', 'filehandle method calls load IO::File on demand (eg. STDOUT->flush)'], - ['\o{}', 'escape sequence for octal values beyond \777'], + ['\o{}', 'escape sequence for octal values beyond 0777'], + ['package {}', 'package declaration in scope of code block only'], + ['multiple: labels:', 'statement labels allowed in all places, even before other labels'], ], modules => [ [JSON => 'interface with data in JavaScript Object Notation', 'decode_json <>'], -- 2.30.2