Current state

This commit is contained in:
2026-02-07 08:23:18 +01:00
commit 0a4372c40d
22479 changed files with 1553543 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env perl
use warnings;
use strict;
my @header;
my $data;
while (<>) {
# the third line is the header
if ($. == 3) {
# and we want the years
@header = map { m/^(\d{4})/; $1; }
(split ',')[1..11];
}
if (m/^United States/) {
my $i = -1;
$data = "[ " . join(", ", map { "{ x: $header[++$i], y: $_ }" } (split ',')[1..11]) . " ]";
last;
}
}
print $data;