perl: missing major v5.10 features
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 3 Mar 2017 14:16:27 +0000 (15:16 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 22 Mar 2017 21:28:04 +0000 (22:28 +0100)
perl.inc.pl

index d251468229249f1af1bac7dbda1da3b2fb40aa05..09fff96479fffd094d29362fcc368fe38b35c784 100644 (file)
@@ -54,11 +54,15 @@ use utf8;
                new => [
                        ['<code>//</code>', 'defined-or operator'],
                        ['<code>~~</code>', 'smart-match operator to compare different data types <small>(updated in v5.10.1)</small>', 'experimental::smartmatch'],
                new => [
                        ['<code>//</code>', 'defined-or operator'],
                        ['<code>~~</code>', 'smart-match operator to compare different data types <small>(updated in v5.10.1)</small>', 'experimental::smartmatch'],
+                       ['<code>say</code>', 'print with newline, equivalent to <code>print @_, "\n"</code>'],
                        ['<code>given</code>', 'switch statement to smart-match with <code>when</code>/<code>default</code>', 'experimental::smartmatch'],
                        ['<code>/(?&lt;name>)/</code>', 'named capture buffers into <code>%+</code>'],
                        ['<code>given</code>', 'switch statement to smart-match with <code>when</code>/<code>default</code>', 'experimental::smartmatch'],
                        ['<code>/(?&lt;name>)/</code>', 'named capture buffers into <code>%+</code>'],
+                       ['<code>/(?1)/</code>', 'recursive regular expression patterns'],
+                       ['<code>/.++/</code>', 'possessive quantifiers <code>?+</code>, <code>*+</code>, <code>++</code> to match greedily'],
                        ['<code>s/keep\K//</code>', 'floating positive lookbehind, efficient alternative for <code>s/(keep)/$1/</code>'],
                        ['<code>/\v/, /\h/</code>', 'vertical and horizontal whitespace escapes'],
                        ['<code>my $_</code>', 'lexically scoped version of the default variable', v0.5.23.4, 'experimental::lexical_topic'],
                        ['<code>s/keep\K//</code>', 'floating positive lookbehind, efficient alternative for <code>s/(keep)/$1/</code>'],
                        ['<code>/\v/, /\h/</code>', 'vertical and horizontal whitespace escapes'],
                        ['<code>my $_</code>', 'lexically scoped version of the default variable', v0.5.23.4, 'experimental::lexical_topic'],
+                       ['<code>state</code>', 'persistent <code>my</code> variables'],
                ],
                release => '2007-12-18',
                distro => {
                ],
                release => '2007-12-18',
                distro => {