From: Mischa POSLAWSKY Date: Wed, 24 Apr 2024 19:34:01 +0000 (+0200) Subject: perl: hide dropped features again unless ?v X-Git-Tag: v1.19~13 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/c107916780c5d7bf0267ae031a72eb331145d935?ds=inline 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. --- 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}) {