NAME

Chess::PGN::Extract - Parse PGN files by using `pgn-extract`

SYNOPSIS

use Chess::PGN::Extract;

# Slurp all games in a PGN file
my @games = read_games ("filename.pgn");

DESCRIPTION

Chess::PGN::Extract provides a function to extract chess records from Portable Game Notation (PGN) files.

Chess::PGN::Extract internally depends on JSON-enhanced pgn-extract, a command line tool to manipulate PGN files. So, please put the pgn-extract in your PATH for using this module.

If you want to deal with a huge PGN file with which slurping is expensive, consider to use Chess::PGN::Extract::Stream, which provides a file stream class to read games iteratively.

FUNCTIONS

SEE ALSO

Chess::PGN::Extract::Stream, Chess::PGN::Parse

BUGS

Please report any bugs to https://bitbucket.org/mnacamura/chess-pgn-extract/issues.

AUTHOR

Mitsuhiro Nakamura m.nacamura@gmail.com

Many thanks to David J. Barnes for his original development of pgn-extract and basicer at Bitbucket for his work on JSON enhancement.

LICENSE

Copyright (C) 2014 Mitsuhiro Nakamura.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.