From c107916780c5d7bf0267ae031a72eb331145d935 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 24 Apr 2024 21:34:01 +0200 Subject: [PATCH] perl: hide dropped features again unless ?v Always shown since incorrect fix in commit v1.14-7-ge90c9ada43 (2023-10-29) [silence warning about skipping dropped features]. Instead of complex workarounds, just revert and enforce the "unconventional" feature. --- perl.plp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl.plp b/perl.plp index 596e4d8..0ee9639 100644 --- a/perl.plp +++ b/perl.plp @@ -2,7 +2,7 @@ Html({ title => 'perl version cheat sheet', - version => '1.6', + version => '1.7', keywords => [qw' perl version feature features comparison sheet cheat overview summary @@ -113,7 +113,8 @@ sub featattrs ($attr) { $title = 'experimental'; } if (defined $attr->{dropped}) { - return '' unless exists $get{v}; + no warnings 'exiting'; + next unless exists $get{v}; # skip containing feature $title = sprintf 'removed in %vd', $_ for $attr->{dropped} || (); } elsif ($attr->{stable}) { -- 2.30.2