marian/scripts/json2text.pl
Kenneth Heafield 30451239b8 Shebang
2016-04-18 14:55:25 +00:00

17 lines
220 B
Perl
Executable File

#!/usr/bin/env perl
use strict;
use JSON;
use Data::Dumper;
my $json = "";
while(<STDIN>) {
$json .= $_;
}
my $d = from_json($json);
my @v;
foreach my $k (keys %$d) {
$v[$d->{$k}] = $k;
}
print "$_\n" foreach(@v);