The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Sport::Analytics::NHL::Report::RO - Class for the NHL HTML RO report.

SYNOPSYS

Class for the NHL HTML RO report. Should not be constructed directly, but via Sport::Analytics::NHL::Report (q.v.) As with any other HTML report, there are two types: old (pre-2007) and new (2007 and on). Parsers of them may have something in common but may turn out to be completely different more often than not.

METHODS

get_coach

Gets the coach from the roster table of the new RO report.

 Arguments: the roster table section containing the team's coach
 Returns: the coach name
get_coach_old

Gets the coach from the roster table of the old RO report.

 Arguments: the roster table section containing the team's coach
 Returns: the coach name
get_officials

Gets the officials from the roster table of the new RO report.

 Arguments: the roster table section containing the game officials
 Returns: the officials and possibly their jersey numbers
get_officials_old

Gets the officials from the roster table of the old RO report.

 Arguments: the roster table section containing the game officials
 Returns: the officials and possibly their jersey numbers
get_roster

Gets the actual roster and scratches from the roster table of the new RO report.

 Arguments:
 * the roster table section containing the players
 * the flag if the game roster or scratches are parsed
 Returns: the list of players and their data:
 * state (captain, a.c.)
 * starting lineup
 * position, number, name...
get_roster_old

Gets the actual roster and scratches from the roster table of the old RO report.

 Arguments:
 * the roster table section containing the players
 * the flag if the game roster or scratches are parsed
 Returns: the list of players and their data:
 * state (captain, a.c.)
 * starting lineup
 * position, number, name...
get_scratch_roster

A wrapper to call get_roster or get_roster_old (q.v.) with 'scratch' flag on.

parse

Parse the report: call either old or new read_roster (q.v.)

read_roster

Reads the new Roster report into a boxscore structure

 Arguments: none
 Returns: void. Everything is in $self.
read_roster_old

Reads the old Roster report into a boxscore structure

 Arguments: none
 Returns: void. Everything is in $self.

AUTHOR

More Hockey Stats, <contact at morehockeystats.com>

BUGS

Please report any bugs or feature requests to contact at morehockeystats.com, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sport::Analytics::NHL::Report::RO. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Sport::Analytics::NHL::Report::RO

You can also look for information at: