countries: store abbreviations in include
[sheet.git] / perl.plp
index 7742f80d830ad5cd437d99ad0947f7bc40fb9397..56904e107717ff6abe4383107880848e3a2a6400 100644 (file)
--- a/perl.plp
+++ b/perl.plp
@@ -12,14 +12,24 @@ Html({
 });
 
 :>
-<h1>Perl cheat sheets</h1>
+<h1>Perl release summary</h1>
+
+<p>The most significant features introduced for recent versions of the Perl scripting language.
+Depending on desired compatibility you'll want to support a minimum of
+<span title="on stable/enterprise platforms such as Solaris 10, RHEL 3, SLES 8">v5.8</span> or
+<span title="on up-to-date servers such as Debian wheezy, Ubuntu 12.04, CentOS 7">v5.14</span>.
+</p>
 
 <:
 my $info = do 'perl.inc.pl' or die $@ // $!;
-for my $ver (reverse sort keys %{$info}) {
+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</h2><dl>'."\n", $ver;
-       printf '<dt>%s<dd>%s', Entity(@{$_}), '<br/>' for @{ $info->{$ver} };
+       printf '<h2>%vd <small>%s</small></h2><dl>'."\n", $vernum, $verrow->{release};
+       printf '<dt>%s<dd>%s'."\n", @{$_}, '<br/>' for @{ $verrow->{new} };
+       printf '<dt>Unicode</dt><dd>v%s'."\n", $_ for $verrow->{unicode} || ();
        print "</dl>\n";
        print "</div>\n\n";
 }