X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/0d113d2a65f3229f441730e78b0fa16b075c7d97..67ec2894e74854c57a71690314d268a9c1c179f0:/perl.plp diff --git a/perl.plp b/perl.plp index e199ddd..fd67342 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 @@ -12,16 +12,30 @@ Html({ }); :> -

Perl cheat sheets

+

Perl release summary

+ +

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 +v5.8 or +v5.14. +

<: 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} || (); + printf '

%vd %s

'."\n", $vernum, $verrow->{release}; + for (@{ $verrow->{new} }) { + if (my $aside = defined $_->[2] && 'experimental') { + $aside .= sprintf ' until %vd', $_->[2] if ref \$_->[2] eq 'VSTRING'; + $_->[1] .= qq{ ($aside)}; + } + printf '
%s
%s'."\n", @{$_}, '
' + } + printf '
Unicode
v%s'."\n", $_ for $verrow->{unicode} || (); print "
\n"; print "
\n\n"; }