Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


NAME

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


VERSION

Version 0.02


SYNOPSIS


    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

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

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

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

Steve Peters, <steve@fisharerojo.org>


BUGS

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. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


ACKNOWLEDGMENTS

Giuseppe Maxia for Chess::PGN::Parse


COPYRIGHT & LICENSE

Copyright 2005 Steve Peters, All Rights Reserved.

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

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy