Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2f1de6cdf0
executable file 20 lines (16 sloc) 0.33 kB
#!/usr/bin/env perl
use strict;
use warnings;
use Avro::DataFileReader;
use Carp;
use IO::File;
use JSON::XS;
my $j = JSON::XS->new->allow_nonref;
my $fh = IO::File->new(shift || croak "specify a file");
my $reader = Avro::DataFileReader->new(
fh => $fh,
);
for ($reader->all) {
print $j->encode($_);
print "\n";
}
Jump to Line
Something went wrong with that request. Please try again.