perl: html in feature descriptions
[sheet.git] / perl.inc.pl
index f4d783590d657cff320eda5b00b9676e234038d8..08961f69f04b3eacba81da3c4224eb316660522e 100644 (file)
@@ -36,8 +36,8 @@ use utf8;
                        ['//', 'defined-or operator'],
                        ['~~', 'smart-match operator to compare different data types'],
                        ['given', 'switch statement to smart-match with when/default'],
-                       ['/(?<name>)/ and $+{name}', 'named caputer buffers'],
-                       ['s/keep\K//', 'floating positive lookbehind, efficient alternative for s/(keep)/$1/'],
+                       ['/(?<name>)/', 'named capture buffers into <code>%+</code>'],
+                       ['s/keep\K//', 'floating positive lookbehind, efficient alternative for <code>s/(keep)/$1/</code>'],
                        ['/\v/, /\h/', 'vertical and horizontal whitespace escapes'],
                        ['my $_', 'lexically scoped version of the default variable'],
                ],
@@ -64,9 +64,10 @@ use utf8;
                new => [
                        ['s///r', 'non-destructive substitution'],
                        ['/(?^)/', 'construct to reset to default modifiers'],
-                       ['/(?{ m// })/', 'regular expressions can be nested in /(?{})/ and /(??{})/'],
+                       ['/(?{ m// })/', 'regular expressions can be nested in <code>/(?{})/</code> and <code>/(??{})/</code>'],
                        ["use re '/flags'", 'customize default modifiers'],
                        ['each $ref e.a.', 'array and hash container functions accept references'],
+                       ['FH->method', 'filehandle method calls load IO::File on demand (eg. <code>STDOUT->flush</code>)'],
                ],
                release => '2011-05-14',
                distro => {
@@ -90,10 +91,11 @@ use utf8;
 
        v5.18 => {
                new => [
-                       ['${^LAST_FH}', 'last read filehandle (used by $.)'],
-                       ['/(?[ … & … + … - … ])/', 'regex set operations'],
+                       ['${^LAST_FH}', 'last read filehandle (used by <code>$.</code>)'],
+                       ['/(?[ a + b ])/', 'regex set operations (character substraction -, unions &amp;)'],
                        ['my sub foo', 'lexical subroutines (also state, our)'],
                        ['next $expression', 'loop controls allow runtime expressions'],
+                       ["no warnings 'experimental::…'", 'mechanism for experimental features, as of now required for smartmatch'],
                ],
                release => '2013-05-18',
                distro => {
@@ -101,4 +103,15 @@ use utf8;
                },
                unicode => '6.2',
        },
+
+       v5.20 => {
+               new => [
+                       ['sub ($var)', 'subroutine signatures'],
+                       ['%hash{…}', 'hash slices return key+value pairs'],
+                       ['[]->@*', 'postfix dereferencing (also e.g. <code>$scalar->$*</code> for <code>$$scalar</code>)'],
+                       ['use warnings; $a', 'variables $a and $b are exempt from <em>used once</em> warnings'],
+               ],
+               unicode => '6.3',
+               release => '2014-05-27',
+       },
 }