X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/cfac127f2b5f00871a98bddc4f00481fafdc5390..b485ba4f63ebd10b905cd68e37cad8a5de3a0624:/perl.inc.pl?ds=inline
diff --git a/perl.inc.pl b/perl.inc.pl
index 2378c6d..23ca6cf 100644
--- a/perl.inc.pl
+++ b/perl.inc.pl
@@ -3,12 +3,13 @@ use utf8;
+{
v5.6 => {
new => [
- ['use utf8'],
- ['\N{named character}'],
- ['our'],
- ['v1.2.3'],
- ['sub :locked :method'],
- ['open $fh, $mode, $expr'],
+ ['use warnings
'],
+ ['use utf8
'],
+ ['\N{named character}
'],
+ ['our
'],
+ ['v1.2.3
'],
+ ['sub :locked :method
'],
+ ['open $fh, $mode, $expr
'],
],
release => '2000-03-23',
distro => {
@@ -20,8 +21,13 @@ use utf8;
v5.8 => {
new => [
- ['unicode overhaul'],
- ['PerlIO'],
+ [q`no utf8; $unicode
`, 'unicode overhaul: additional /\p{}/ properties'],
+ [q`binmode $fh, ':perlio'
`, 'file handle behaviour altered by PerlIO layers'],
+ [q`open $fh, '-|', @cmd
`, 'open list to fork a command without spawning a shell'],
+ [q`open $fh, '>', \$var
`, 'perl scalars as virtual files'],
+ [q`printf '%1$s', @args
`, 'syntax to use parameters out of order'],
+ [q`1_2_3 == 123
`, 'underscores between digits allowed in numeric constants'],
+# [q`use if
`, 'conditional module inclusion'], # also installable in earlier versions
],
release => '2002-07-18',
distro => {
@@ -33,13 +39,13 @@ use utf8;
v5.10 => {
new => [
- ['//', 'defined-or operator'],
- ['~~', 'smart-match operator to compare different data types'],
- ['given', 'switch statement to smart-match with when/default'],
- ['/(?)/', 'named capture buffers into %+'],
- ['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'],
+ ['//
', 'defined-or operator'],
+ ['~~
', 'smart-match operator to compare different data types (updated in v5.10.1)'],
+ ['given
', 'switch statement to smart-match with when
/default
'],
+ ['/(?<name>)/
', 'named capture buffers into %+
'],
+ ['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'],
],
release => '2007-12-18',
distro => {
@@ -51,10 +57,12 @@ use utf8;
v5.12 => {
new => [
- ['package version', 'package NAME VERSION shorthand for our $VERSION"'],
- ['...', 'yada-yada operator: code placeholder'],
- ['use strict', 'Implicit strictures if use VERSION >= 5.12'],
- ['... when', '"when" is now allowed to be used as a statement modifier'],
+ ['package version
', 'package
NAME VERSION shorthand for our $VERSION
'],
+ ['...
', 'yada-yada operator: code placeholder'],
+ ['use 5.012
', 'Implicit strict
if use VERSION >= v5.12'],
+ ['⦠when
', 'when
is now allowed to be used as a statement modifier'],
+ [q(use overload 'qr'
), 'customisable conversion to regular expressions'],
+ ['/\N/
', 'inverse \n to match any character except newline regardless of /s
'],
],
release => '2010-04-12',
unicode => '5.2',
@@ -62,12 +70,12 @@ use utf8;
v5.14 => {
new => [
- ['s///r', 'non-destructive substitution'],
- ['/(?^)/', 'construct to reset to default modifiers'],
- ['/(?{ m// })/', 'regular expressions can be nested in /(?{})/ and /(??{})/'],
- ["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. STDOUT->flush)'],
+ ['s///r
', 'non-destructive substitution'],
+ ['/(?^)/
', 'construct to reset to default modifiers'],
+ ['/(?{ m// })/
', 'regular expressions can be nested in /(?{})/
and /(??{})/
'],
+ ["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. STDOUT->flush
)'],
],
release => '2011-05-14',
distro => {
@@ -78,9 +86,9 @@ use utf8;
v5.16 => {
new => [
- ['__SUB__', 'current subroutine reference'],
- ['fc, "\F"', 'unicode foldcase to compare case-insensitively'],
- ['"\N{}"', 'automatic use charnames qw( :full :short )'],
+ ['__SUB__
', 'current subroutine reference'],
+ ['fc, "\F"
', 'unicode foldcase to compare case-insensitively'],
+ ['"\N{}"
', 'automatic use charnames qw( :full :short )
'],
],
release => '2012-05-20',
distro => {
@@ -91,24 +99,27 @@ use utf8;
v5.18 => {
new => [
- ['${^LAST_FH}', 'last read filehandle (used by $.)'],
- ['/(?[ a + b ])/', 'regex set operations (character substraction -, unions &)'],
- ['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'],
+ ['${^LAST_FH}
', 'last read filehandle (used by $.
)'],
+ ['/(?[ a + b ])/
', 'regex set operations (character substraction -
, unions &
)'],
+ ['my sub foo
', 'lexical subroutines (also state, our)'],
+ ['next $expression
', 'loop controls allow runtime expressions'],
+ [q(no warnings 'experimental::â¦'
), 'mechanism for experimental features, as of now required for smartmatch'],
],
release => '2013-05-18',
- distro => {
- debian => 'jessie',
- },
unicode => '6.2',
},
- v5.19.5 => {
+ v5.20 => {
new => [
- ['%hash{â¦}', 'hash slices return key+value pairs'],
- ['[]->@*', 'postfix dereferencing (also e.g. $scalar->$* for $$scalar)'],
+ ['sub ($var)
', 'subroutine signatures'],
+ ['%hash{â¦}
', 'hash slices return key+value pairs'],
+ ['[]->@*
', 'postfix dereferencing (also e.g. $scalar->$*
for $$scalar
)'],
+ [q(use warnings 'once'; $a
), 'variables $a and $b are exempt from used once warnings'],
],
unicode => '6.3',
+ release => '2014-05-27',
+ distro => {
+ debian => 'jessie',
+ },
},
}