X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/aeb3c2b89b75f171d481c410690c6207b9d2dc83..6ae28d9dc8663b94530e172949c2071deaff1e78:/browser.plp?ds=sidebyside diff --git a/browser.plp b/browser.plp index 930c435..6d75d4a 100644 --- a/browser.plp +++ b/browser.plp @@ -4,7 +4,7 @@ no if $] >= 5.018, warnings => 'experimental::smartmatch'; Html({ title => 'browser compatibility cheat sheet', - version => '1.5', + version => '1.6', description => [ "Compatibility table of new web features (HTML5, CSS3, SVG, Javascript)", "comparing support and usage share for all popular browser versions.", @@ -20,7 +20,7 @@ Html({ say "
0.', ]); } - $canihas = do "data/browser/usage-$_.inc.pl" or do { - Alert('Browser usage data not found', $@ || $!); + $canihas = eval { Data("data/browser/usage-$_") } or do { + Alert('Browser usage data not found', $@); break; }; $usage = $_; @@ -470,7 +467,7 @@ sub paddedver { # normalised version number comparable as string (cmp) $_[0] =~ m/(?:.*-|^)(\d*)(.*)/; # matched (major)(.minor) of last value in range (a-B) - return sprintf('%02d', length $1 ? $1 : 99) . $2; + return sprintf('%03d', length $1 ? $1 : 999) . $2; } sub showversions {