From 2093d258d155bfc6dd7fe8edc763d1f3a2fe7b7b Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 3 Mar 2017 15:16:27 +0100 Subject: [PATCH] perl: missing major v5.10 features --- perl.inc.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl.inc.pl b/perl.inc.pl index d251468..09fff96 100644 --- a/perl.inc.pl +++ b/perl.inc.pl @@ -54,11 +54,15 @@ use utf8; new => [ ['//', 'defined-or operator'], ['~~', 'smart-match operator to compare different data types (updated in v5.10.1)', 'experimental::smartmatch'], + ['say', 'print with newline, equivalent to print @_, "\n"'], ['given', 'switch statement to smart-match with when/default', 'experimental::smartmatch'], ['/(?<name>)/', 'named capture buffers into %+'], + ['/(?1)/', 'recursive regular expression patterns'], + ['/.++/', 'possessive quantifiers ?+, *+, ++ to match greedily'], ['s/keep\K//', 'floating positive lookbehind, efficient alternative for s/(keep)/$1/'], ['/\v/, /\h/', 'vertical and horizontal whitespace escapes'], ['my $_', 'lexically scoped version of the default variable', v0.5.23.4, 'experimental::lexical_topic'], + ['state', 'persistent my variables'], ], release => '2007-12-18', distro => { -- 2.30.0