From: Mischa POSLAWSKY Date: Wed, 4 Sep 2024 12:22:44 +0000 (+0200) Subject: perl: missing minor v5.14 features X-Git-Url: http://git.shiar.net/sheet.git/commitdiff_plain/385813929989c8745b914a7fb4b48384f388c6cb?hp=ea0851e8f6b1501448206f3e3b1a86b11ac5b983 perl: missing minor v5.14 features Triggered by suggestion from u/leonerduk at reddit post . --- 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 <>'],