browser: fix error message of missing usage include
[sheet.git] / perl.plp
index 596e4d84d80afeafe4dece3facdbe662e04d326c..d6dfd9dcff1a3ee9dc47a693d79fb5a03c255f32 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -2,12 +2,12 @@
 
 Html({
        title => 'perl version cheat sheet',
-       version => '1.6',
+       version => '1.9',
        keywords => [qw'
                perl version feature features comparison
                sheet cheat overview summary
        '],
-       stylesheet => [qw'light dark red'],
+       image => 'data/camels.jpg',
        data => ['perl.inc.pl'],
 });
 
@@ -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}) {
@@ -130,6 +131,20 @@ sub featattrs ($attr) {
                $title = join ', ', $prefix, $title // ();
                $attr->{name} //= $attr->{feature};
        }
+       if (defined $attr->{bundle}) {
+               if ($attr->{stable} and !$attr->{bundle}) {
+                       $title .= ' then bundled';
+               }
+               else {
+                       my $v = 'bundled';
+                       $v .= ' in ' . join(' and ',
+                               # specific version(s) distinct from stable or current
+                               map { sprintf '%vd', $_ }
+                               map { ref eq 'ARRAY' ? @{$_} : $_ } $_
+                       ) for $attr->{bundle} || ();
+                       $title = join ', ', $title // (), $v;
+               }
+       }
        $title = $title ? sprintf ' <em class="ex">(%s)</em>', $title : '';
 
        if (my $eg = $attr->{eg}) {