X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/a8c39dd96b809107ce0029a6a26f37bfbf33b6bf..8e8998a5c2e51159db372eed7e4e293df83ccc91:/tools/mkcaniuse diff --git a/tools/mkcaniuse b/tools/mkcaniuse index eaadead..53cd904 100755 --- a/tools/mkcaniuse +++ b/tools/mkcaniuse @@ -1,6 +1,5 @@ #!/usr/bin/env perl -use 5.010; -use strict; +use 5.014; use warnings; use Data::Dump 'pp'; @@ -13,12 +12,16 @@ our $VERSION = '1.01'; local $/; # slurp my $source = readline; +$JSON::PP::false = 0; +$JSON::PP::true = 1; + my $data = from_json($source); my $update = eval { stat(${^LAST_FH} // $ARGV)->mtime } or warn "Could not determine input time\n"; $data->{-date} = Time::Piece->new($update)->datetime; -print pp($data); +say "# automatically generated by $0"; +print '+', pp($data); __END__