Html({
title => 'perl version cheat sheet',
- version => 'v1.1',
+ version => '1.1',
keywords => [qw'
perl version feature features comparison
sheet cheat overview summary
<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>.
+<span title="on dinosaur platforms such as Solaris 10, AIX 5.2, RHEL 3, SLES 8">v5.8</span> or
+<span title="on stable servers such as Debian wheezy, Ubuntu 12.04, CentOS 7">v5.14</span>.
</p>
<:
print '<div class="section">'."\n";
printf '<h2>%vd <small>%s</small></h2><dl>'."\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{ <em class="ex">($aside)</em>};
+ if (defined (my $experimental = $_->[2])) {
+ my $title = 'experimental';
+ my $class = ' class="ex"';
+ if (ref \$experimental eq 'VSTRING') {
+ my $dropped = $experimental =~ s/^\0//
+ and (exists $get{v} or next);
+ $title = sprintf('%s %vd',
+ $dropped ? 'removed in ' : "$title until",
+ $experimental,
+ );
+ $experimental = $_->[3]; # optional additional class
+ }
+ if ($experimental) {
+ $class .= sprintf ' title="%s"', $experimental;
+ }
+ $_->[1] .= qq{ <em$class>($title)</em>};
}
printf '<dt>%s<dd>%s'."\n", @{$_}, '<br/>'
}