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

NAME

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

SYNOPSYS

Class for the NHL HTML GS 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

normalize

Cleaning up and standardizing the parsed data.

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

Cleaning up and standardizing the parsed data from the new report.

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

Cleaning up and standardizing the parsed data from the old report.

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

Apply specific normalization to a scoring event.

 Arguments: the scoring event hashref
 Returns: void. Everything is fixed within the hashref.
parse

Parse the GS html tree into a boxscore object

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

Parse the goaltending summary in the new GS report

 Arguments: the goaltender summary HTML element
 Returns: void. It's in the $self
parse_misc_summary

Parse the misc information summary in the old GS report

 Arguments: the misc summary HTML element
 Returns: void.
parse_new_misc_summary

Parse the misc information summary in the new GS report

 Arguments: the misc summary HTML element
 Returns: void.
parse_new_penalty_event

Parse the entry of a penalty event in the new GS report

 Arguments: the HTML element of the penalty
 Returns: the parsed event
parse_new_pp_summary
parse_penalty_event

Parse the entry of a penalty event in the old GS report

 Arguments: the HTML element of the penalty
 Returns: the parsed event
parse_penalty_summary

Parse penalty summary in the both old and new GS reports

 Arguments:
 * the HTML element with the summary
 * the flag of format (old/new)
parse_pp_summary

Parse powerplay success summary in the new GS report

 Arguments: the HTML element with the PP summary
 Returns: void
parse_scoring_event

Parse the entry of a scoring event in the both new and old GS reports.

 Arguments: the HTML element of the goal
 Returns: the parsed event
parse_scoring_summary

Parse scoring summary in the both old and new GS reports

 Arguments:
 * the HTML element with the summary
 * the flag of format (old/new)
 Returns: void.

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::GS. 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::GS

You can also look for information at: