X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/c45cd5353d1f23fc7af98fd5eb57e2e9b72b21a5..d22a8b0ff7a930e376caef8878e545bd2934e451:/perl.plp
diff --git a/perl.plp b/perl.plp
index 7b23038..4c90687 100644
--- 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,29 @@ 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 '
'."\n";
printf '
%vd %s
'."\n", $vernum, $verrow->{release};
- printf '- %s
- %s', @{$_}, '
' for @{ $verrow->{new} };
- printf ' - Unicode
- v%s', $_ for $verrow->{unicode} || ();
+ for (@{ $verrow->{new} }) {
+ if (defined (my $experimental = $_->[2])) {
+ my $title = 'experimental';
+ my $class = ' class="ex"';
+ if (ref \$experimental eq 'VSTRING') {
+ $title = sprintf('%s %vd',
+ $experimental =~ s/^\0// ? 'removed in ' : "$title until",
+ $experimental,
+ );
+ $experimental = $_->[3]; # optional additional class
+ }
+ if ($experimental) {
+ $class .= sprintf ' title="%s"', $experimental;
+ }
+ $_->[1] .= qq{ ($title)};
+ }
+ printf '
- %s
- %s'."\n", @{$_}, '
'
+ }
+ printf ' - Unicode
- v%s'."\n", $_ for $verrow->{unicode} || ();
print "
\n";
print "
\n\n";
}