perl: experimental feature removal for v5.23.1
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 22 Aug 2015 07:30:38 +0000 (09:30 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 21 Sep 2015 22:20:08 +0000 (00:20 +0200)
Misuse version number prepended by \0 since there's no Perl version below 1.
Admittedly an unintuitive hack, but I like it better than verbose hashes.

perl.inc.pl
perl.plp

index abdf7a957cfd154a065f1f9ebe0f3504f5520017..436fbeeca28fe4be1c1571ea2b52c47dc8067803 100644 (file)
@@ -88,7 +88,7 @@ use utf8;
                        ['<code>/(?^)/</code>', 'construct to reset to default modifiers'],
                        ['<code>/(?{ m() })/</code>', 'regular expressions can be nested in <code>/(?{})/</code> and <code>/(??{})/</code>', v5.20],
                        [q"<code>use re '/flags'</code>", 'customise default modifiers'],
-                       ['<code>each $ref</code> e.a.', 'array and hash container functions accept references', ''],
+                       ['<code>each $ref</code> e.a.', 'array and hash container functions accept references', v0.5.23.1],
                        ['<code>FH->method</code>', 'filehandle method calls load IO::File on demand (eg. <code>STDOUT->flush</code>)'],
                ],
                release => '2011-05-14',
index f5d6f267a8bdb777ec0157a2a8e722bf2e8cb911..6bc35863a83b03357dad72e358385221ec54ce85 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -33,7 +33,11 @@ for my $vernum (reverse sort keys %{$info}) {
                        my $title = 'experimental';
                        my $class = ' class="ex"';
                        if (ref \$experimental eq 'VSTRING') {
-                               $title .= sprintf ' until %vd', $experimental;
+                               $title = sprintf('%s %vd',
+                                       $experimental =~ s/^\0// ? 'removed in ' : "$title until",
+                                       $experimental,
+                               );
+                               $experimental = $_->[3];  # optional additional class
                        }
                        elsif ($experimental) {
                                $class .= sprintf ' title="%s"', $experimental;