Chess::PGN::Parse::FileHandle - Parse PGN from a FileHandle


Chess-PGN-Parse-FileHandle documentation  | view source Contained in the Chess-PGN-Parse-FileHandle distribution.

Index


NAME

Top

Chess::PGN::Parse::FileHandle - Parse PGN from a FileHandle

VERSION

Top

Version 0.02

SYNOPSIS

Top

    use Chess::PGN::Parse::FileHandle;

    # read from a gzip'ed file with gunzipping first
    open my $pgn_gz, "<:gzip", "my_pgns.pgn.gz" or die $!;

    my $pgn = Chess::PGN::Parse::FileHandle->new($pgn_gz);
    while ($pgn->read_game()) {
        # Process the file like you would with Chess::PGN::Parse
        ...
    }

DESCRIPTION

Top

After getting tired of having to repeatedly gzip and gunzip PGN files to process through Chess::PGN::Parse, I decided there had to be an easier way. Well, this is it. This module is simple subclass of Chess::PGN::Parse that allows FILECHANDLEs as a parameter.

FUNCTIONS

Top

new FILEHANDLE

Returns a new Chess::PGN::Parse::FileHandle object, ready to read from FILEHANDLE.

The remaining methods of this class are inherited directly from Chess::PGN::Parse.

NOTES

Top

This is a naughty module that peeks at the internals of another module. It could easily break if changes are made to Chess::PGN::Parse.

AUTHOR

Top

Steve Peters, <steve@fisharerojo.org>

BUGS

Top

Please report any bugs or feature requests to bug-chess-pgn-parse-filehandle@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Chess-PGN-Parse-FileHandle. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGMENTS

Top

Giuseppe Maxia for Chess::PGN::Parse

COPYRIGHT & LICENSE

Top


Chess-PGN-Parse-FileHandle documentation  | view source Contained in the Chess-PGN-Parse-FileHandle distribution.