perl: code markup for identifiers
[sheet.git] / perl.inc.pl
1 use utf8;
2
3 +{
4         v5.6 => [
5                 ['use utf8'],
6                 ['\N{named character}'],
7                 ['our'],
8                 ['v1.2.3'],
9                 ['sub :locked :method'],
10                 ['open $fh, $mode, $expr'],
11         ],
12         v5.8 => [
13                 ['unicode overhaul'],
14                 ['PerlIO'],
15         ],
16         v5.10 => [
17                 ['//', 'defined-or operator'],
18                 ['~~', 'smart-match operator to compare different data types'],
19                 ['given', 'switch statement to smart-match with when/default'],
20                 ['/(?<name>)/ and $+{name}', 'named caputer buffers'],
21                 ['s/keep\K//', 'floating positive lookbehind, efficient alternative for s/(keep)/$1/'],
22                 ['/\v/, /\h/', 'vertical and horizontal whitespace escapes'],
23                 ['my $_', 'lexically scoped version of the default variable'],
24         ],
25         v5.12 => [
26                 ['package version', 'package NAME VERSION shorthand for our $VERSION"'],
27                 ['...', 'yada-yada operator: code placeholder'],
28                 ['use strict', 'Implicit strictures if use VERSION >= 5.12'],
29                 ['... when', '"when" is now allowed to be used as a statement modifier'],
30         ],
31         v5.14 => [
32                 ['s///r', 'non-destructive substitution'],
33                 ['/(?^)/', 'construct to reset to default modifiers'],
34                 ['/(?{ m// })/', 'regular expressions can be nested in /(?{})/ and /(??{})/'],
35                 ["use re '/flags'", 'customize default modifiers'],
36                 ['each $ref e.a.', 'array and hash container functions accept references'],
37         ],
38         v5.16 => [
39                 ['__SUB__', 'current subroutine reference'],
40                 ['fc, "\F"', 'unicode foldcase to compare case-insensitively'],
41                 ['"\N{}"', 'automatic use charnames qw( :full :short )'],
42         ],
43 }