perl: complete v5.20 features
[sheet.git] / perl.plp
1 <(common.inc.plp)><:
2
3 Html({
4         title => 'perl version cheat sheet',
5         version => 'v1.0',
6         keywords => [qw'
7                 perl version feature features comparison
8                 sheet cheat overview summary
9         '],
10         stylesheet => [qw'light dark red'],
11         data => ['perl.inc.pl'],
12 });
13
14 :>
15 <h1>Perl cheat sheets</h1>
16
17 <:
18 my $info = do 'perl.inc.pl' or die $@ // $!;
19 for my $vernum (reverse sort keys %{$info}) {
20         my $verrow = $info->{$vernum};
21         print '<div class="section">'."\n";
22         printf '<h2>%vd <small style="position:absolute; margin-left:1em">%s</small></h2><dl>'."\n", $vernum, $verrow->{release};
23         printf '<dt><code>%s</code><dd>%s', Entity(@{$_}), '<br/>' for @{ $verrow->{new} };
24         printf '<dt>Unicode</dt><dd>v%s', $_ for $verrow->{unicode} || ();
25         print "</dl>\n";
26         print "</div>\n\n";
27 }
28