Group
Extension

Matches 2

Chess-PGN-Extract ( M/MN/MNACAMURA/Chess-PGN-Extract-0.02.tar.gz, MNACAMURA, 2014; MetaCPAN )
Chess-PGN-Extract/lib/Chess/PGN/Extract.pm ( view source; MetaCPAN )
ak |;
use Data::Dump qw| dump |;
use Encode     qw| encode_utf8 |;
use IO::Handle;
use JSON::XS   qw| decode_json |;
use Sys::Cmd   qw| spawn |;
use Try::Tiny;

sub read_games {
  my $pgn  = shift;
  
xtract', '-s', '-Wjson', $pgn );
  my $out = do { local $/; $proc->stdout->getline };
  my @err = $proc->stderr->getlines;
  if (@err) {
    if ($err[0] =~ /Unknown output format json/) {
      croak 
r: pgn-extract has no '-Wjson' option");
    }
    STDERR->print ("pgn-extract: $_") for @err;
  }
  $proc->wait_child; # cleanup

  # Ad-hoc hack for a problem in parsing JSON
  #
  # PGN files may c
Chess-PGN-Extract ( M/MN/MNACAMURA/Chess-PGN-Extract-0.02.tar.gz, MNACAMURA, 2014; MetaCPAN )
Chess-PGN-Extract/lib/Chess/PGN/Extract/Stream.pm ( view source; MetaCPAN )
ttp://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/> and
basicer at Bitbucket for
L<his work on JSON enhancement|https://bitbucket.org/basicer/pgn-extract/>.

=head1 LICENSE

Copyright (C) 2014 Mits

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.