perl: complete v5.20 features
[sheet.git] / perl.inc.pl
1 use utf8;
2
3 +{
4         v5.6 => {
5                 new => [
6                         ['use utf8'],
7                         ['\N{named character}'],
8                         ['our'],
9                         ['v1.2.3'],
10                         ['sub :locked :method'],
11                         ['open $fh, $mode, $expr'],
12                 ],
13                 release => '2000-03-23',
14                 distro => {
15                         debian => 'woody',
16                         redhat => '2.1',
17                 },
18                 unicode => '3.0.1',
19         },
20
21         v5.8 => {
22                 new => [
23                         ['unicode overhaul'],
24                         ['PerlIO'],
25                 ],
26                 release => '2002-07-18',
27                 distro => {
28                         debian => 'sarge',
29                         redhat => '3.9',
30                 },
31                 unicode => '3.2.0',
32         },
33
34         v5.10 => {
35                 new => [
36                         ['//', 'defined-or operator'],
37                         ['~~', 'smart-match operator to compare different data types'],
38                         ['given', 'switch statement to smart-match with when/default'],
39                         ['/(?<name>)/', 'named capture buffers into %+'],
40                         ['s/keep\K//', 'floating positive lookbehind, efficient alternative for s/(keep)/$1/'],
41                         ['/\v/, /\h/', 'vertical and horizontal whitespace escapes'],
42                         ['my $_', 'lexically scoped version of the default variable'],
43                 ],
44                 release => '2007-12-18',
45                 distro => {
46                         debian => 'lenny',
47                         redhat => '6.5',
48                 },
49                 unicode => '5.0.0',
50         },
51
52         v5.12 => {
53                 new => [
54                         ['package version', 'package NAME VERSION shorthand for our $VERSION"'],
55                         ['...', 'yada-yada operator: code placeholder'],
56                         ['use strict', 'Implicit strictures if use VERSION >= 5.12'],
57                         ['... when', '"when" is now allowed to be used as a statement modifier'],
58                 ],
59                 release => '2010-04-12',
60                 unicode => '5.2',
61         },
62
63         v5.14 => {
64                 new => [
65                         ['s///r', 'non-destructive substitution'],
66                         ['/(?^)/', 'construct to reset to default modifiers'],
67                         ['/(?{ m// })/', 'regular expressions can be nested in /(?{})/ and /(??{})/'],
68                         ["use re '/flags'", 'customize default modifiers'],
69                         ['each $ref e.a.', 'array and hash container functions accept references'],
70                         ['FH->method', 'filehandle method calls load IO::File on demand (eg. STDOUT->flush)'],
71                 ],
72                 release => '2011-05-14',
73                 distro => {
74                         debian => 'wheezy',
75                 },
76                 unicode => '6.0+#8',
77         },
78
79         v5.16 => {
80                 new => [
81                         ['__SUB__', 'current subroutine reference'],
82                         ['fc, "\F"', 'unicode foldcase to compare case-insensitively'],
83                         ['"\N{}"', 'automatic use charnames qw( :full :short )'],
84                 ],
85                 release => '2012-05-20',
86                 distro => {
87                         redhat => '7.0',
88                 },
89                 unicode => '6.1',
90         },
91
92         v5.18 => {
93                 new => [
94                         ['${^LAST_FH}', 'last read filehandle (used by $.)'],
95                         ['/(?[ a + b ])/', 'regex set operations (character substraction -, unions &)'],
96                         ['my sub foo', 'lexical subroutines (also state, our)'],
97                         ['next $expression', 'loop controls allow runtime expressions'],
98                         ["no warnings 'experimental::…'", 'mechanism for experimental features, as of now required for smartmatch'],
99                 ],
100                 release => '2013-05-18',
101                 distro => {
102                         debian => 'jessie',
103                 },
104                 unicode => '6.2',
105         },
106
107         v5.20 => {
108                 new => [
109                         ['sub ($var)', 'subroutine signatures'],
110                         ['%hash{…}', 'hash slices return key+value pairs'],
111                         ['[]->@*', 'postfix dereferencing (also e.g. $scalar->$* for $$scalar)'],
112                         ['use warnings; $a', 'variables $a and $b are exempt from used once warnings'],
113                 ],
114                 unicode => '6.3',
115                 release => '2014-05-27',
116         },
117 }