| 1 | package WWW::Baseball::NPB::Game; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use vars qw($VERSION); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | $VERSION = 0.03; | |
| 6 | |||
| 7 | 18 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 8 | 18 | my($class, %p) = @_; | |
| 9 | 18 | bless {%p}, $class; | |
| 10 | } | ||
| 11 | |||
| 12 | 8 | ▶ | sub score { |
|
Subroutine
score: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 8 | my($self, $name) = @_; | |
| 14 | 8 | return $self->{score}->{$name}; | |
| 15 | } | ||
| 16 | |||
| 17 | 4 | ▶ | no strict 'refs'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 4 | for my $meth (qw(home visitor league status stadium)) { | |
| 19 | 26 | ▶ | *$meth = sub { shift->{$meth} }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 20 | } | ||
| 21 | |||
| 22 | 4 | 1; | |
| 23 | __END__ | ||