From: Mischa POSLAWSKY Date: Sat, 24 Jan 2015 18:21:23 +0000 (+0100) Subject: perl: minor updates in feature list X-Git-Tag: v1.6~69 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/b485ba4f63ebd10b905cd68e37cad8a5de3a0624 perl: minor updates in feature list --- diff --git a/perl.inc.pl b/perl.inc.pl index 2c76e59..23ca6cf 100644 --- a/perl.inc.pl +++ b/perl.inc.pl @@ -3,6 +3,7 @@ use utf8; +{ v5.6 => { new => [ + ['use warnings'], ['use utf8'], ['\N{named character}'], ['our'], @@ -25,7 +26,7 @@ use utf8; [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`$num = 1_000`, 'underscores between digits allowed in numeric constants'], + [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', @@ -39,7 +40,7 @@ use utf8; v5.10 => { new => [ ['//', 'defined-or operator'], - ['~~', 'smart-match operator to compare different data types'], + ['~~', '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/'], @@ -60,6 +61,8 @@ use utf8; ['...', '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', @@ -85,7 +88,7 @@ use utf8; new => [ ['__SUB__', 'current subroutine reference'], ['fc, "\F"', 'unicode foldcase to compare case-insensitively'], - ['"\N{}"', 'automatic use charnames qw( :full :short )'], + ['"\N{}"', 'automatic use charnames qw( :full :short )'], ], release => '2012-05-20', distro => { @@ -97,15 +100,12 @@ use utf8; v5.18 => { new => [ ['${^LAST_FH}', 'last read filehandle (used by $.)'], - ['/(?[ a + b ])/', 'regex set operations (character substraction -, unions &)'], + ['/(?[ 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', }, @@ -118,5 +118,8 @@ use utf8; ], unicode => '6.3', release => '2014-05-27', + distro => { + debian => 'jessie', + }, }, }