perl: hide experimental features dropped later
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 24 Apr 2016 17:38:04 +0000 (19:38 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 22 Mar 2017 21:28:03 +0000 (22:28 +0100)
perl.plp

index 20eafc7..5d54444 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -33,8 +33,10 @@ for my $vernum (reverse sort keys %{$info}) {
                        my $title = 'experimental';
                        my $class = ' class="ex"';
                        if (ref \$experimental eq 'VSTRING') {
+                               my $dropped = $experimental =~ s/^\0//
+                                       and (exists $get{v} or next);
                                $title = sprintf('%s %vd',
-                                       $experimental =~ s/^\0// ? 'removed in ' : "$title until",
+                                       $dropped ? 'removed in ' : "$title until",
                                        $experimental,
                                );
                                $experimental = $_->[3];  # optional additional class