From: Mischa POSLAWSKY Date: Fri, 3 Mar 2017 14:16:27 +0000 (+0100) Subject: perl: missing major v5.10 features X-Git-Tag: v1.9~18 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/2093d258d155bfc6dd7fe8edc763d1f3a2fe7b7b perl: missing major v5.10 features --- 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 => {