sc: correct hots building sizes
[sheet.git] / perl.plp
index 7b230383a50c813afb4394dd2647da5b4fd706f4..fd673420f58f9da503ea9ac7d89cc3a2f7a579c1 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -2,7 +2,7 @@
 
 Html({
        title => 'perl version cheat sheet',
-       version => 'v1.0',
+       version => 'v1.1',
        keywords => [qw'
                perl version feature features comparison
                sheet cheat overview summary
@@ -24,10 +24,18 @@ Depending on desired compatibility you'll want to support a minimum of
 my $info = do 'perl.inc.pl' or die $@ // $!;
 for my $vernum (reverse sort keys %{$info}) {
        my $verrow = $info->{$vernum};
+       $verrow->{unstable} and next unless exists $get{v};
+
        print '<div class="section">'."\n";
        printf '<h2>%vd <small>%s</small></h2><dl>'."\n", $vernum, $verrow->{release};
-       printf '<dt>%s<dd>%s', @{$_}, '<br/>' for @{ $verrow->{new} };
-       printf '<dt>Unicode</dt><dd>v%s', $_ for $verrow->{unicode} || ();
+       for (@{ $verrow->{new} }) {
+               if (my $aside = defined $_->[2] && 'experimental') {
+                       $aside .= sprintf ' until %vd', $_->[2] if ref \$_->[2] eq 'VSTRING';
+                       $_->[1] .= qq{ <em class="ex">($aside)</em>};
+               }
+               printf '<dt>%s<dd>%s'."\n", @{$_}, '<br/>'
+       }
+       printf '<dt>Unicode</dt><dd>v%s'."\n", $_ for $verrow->{unicode} || ();
        print "</dl>\n";
        print "</div>\n\n";
 }