Chess::FIDE::PlayerChess::FIDE::Player is a Perl module to parse player data from FIDE Rating List. | |
Download |
Chess::FIDE::Player Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Roman M. Parparov
- Publisher web site:
- http://search.cpan.org/~romm/Chess-ICClib-1.00/lib/Chess/ICClib.pm
Chess::FIDE::Player Tags
Chess::FIDE::Player Description
Chess::FIDE::Player is a Perl module to parse player data from FIDE Rating List. Chess::FIDE::Player is a Perl module to parse player data from FIDE Rating List.SYNOPSIS use Chess::FIDE::Player qw(@FIDE_field); my $player = Chess::FIDE::Player->new(%param); print $player->id() . "n"; $player->value('field');Chess::FIDE::Player - Parse player data from FIDE Rating List. FIDE is the International Chess Federation that every quarter of the year releases a list of its rated members. The list contains about fifty thousand entries. This module provides means of translation of every entry into a perl object containing all the fields.Constructor$player = Chess::FIDE::Player->new(%param);The constructor creates a hash reference, blesses it and fills it with parameters passed in %param. The parameters should be fields corresponding to @FIDE_field (see section 'EXPORT'). If a field is not defined, a default value contained in %init is used, and if it is the 'id' field, the next default id is increased by one.value$player->value('field'); $player->value('field',$value);First one retrieves a field in the $player object. If the field is not valid (i.e. not contained in @FIDE_field, an undef is returned. Second one sets the field to $value, and again in case of an invalid field undef is returned. Otherwise the new value of the field is returned.EXPORT@FIDE_field - array of valid fields for the Player object. Requirements: · Perl
Chess::FIDE::Player Related Software