X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/6b443abb1ebf8f9a7902eb53911ab26201e5e7ab..ca8caa9227ad9151bd57ab7eccab2c8947ea55da:/perl.plp diff --git a/perl.plp b/perl.plp index 255032a..56904e1 100644 --- a/perl.plp +++ b/perl.plp @@ -8,17 +8,28 @@ Html({ sheet cheat overview summary '], stylesheet => [qw'light dark red'], + data => ['perl.inc.pl'], }); :> -

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 $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 '
'."\n"; - printf '

%vd

'."\n", $ver; - printf '
%s
%s', Entity(@{$_}), '
' for @{ $info->{$ver} }; + printf '

%vd %s

'."\n", $vernum, $verrow->{release}; + printf '
%s
%s'."\n", @{$_}, '
' for @{ $verrow->{new} }; + printf '
Unicode
v%s'."\n", $_ for $verrow->{unicode} || (); print "
\n"; print "
\n\n"; }