| 1 | package Acme::MadokaMagica; | ||||||||||
| 2 | 5 | ▶ | use 5.008001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 5 | ▶ | use parent 'Exporter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 5 | our $VERSION = "0.07"; | |||||||||
| 9 | 5 | our $miracle = "奇跡"; | |||||||||
| 10 | 5 | our $magical = "魔法"; | |||||||||
| 11 | |||||||||||
| 12 | 5 | our @EXPORT = qw[ $miracle $magical]; | |||||||||
| 13 | |||||||||||
| 14 | 5 | ▶ | use Readonly; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 5 | Readonly our $KyoSaya => [ | |||||||||
| 17 | "SakuraKyoko", | ||||||||||
| 18 | "MikiSayaka", | ||||||||||
| 19 | ]; | ||||||||||
| 20 | |||||||||||
| 21 | 5 | Readonly our $MadoHomu => [ | |||||||||
| 22 | "KanameMadoka", | ||||||||||
| 23 | "AkemiHomura", | ||||||||||
| 24 | ]; | ||||||||||
| 25 | |||||||||||
| 26 | 5 | Readonly our $Alone => [ | |||||||||
| 27 | "TomoeMami", | ||||||||||
| 28 | ]; | ||||||||||
| 29 | |||||||||||
| 30 | 5 | Readonly our $HollyQuintet => [ | |||||||||
| 31 | @$MadoHomu, | ||||||||||
| 32 | @$Alone, | ||||||||||
| 33 | @$KyoSaya, | ||||||||||
| 34 | ]; | ||||||||||
| 35 | |||||||||||
| 36 | 5 | Readonly our $AloneMembers => [ | |||||||||
| 37 | @$Alone, | ||||||||||
| 38 | ]; | ||||||||||
| 39 | |||||||||||
| 40 | 5 | Readonly our $MainMembers => [ | |||||||||
| 41 | @$HollyQuintet, | ||||||||||
| 42 | ]; | ||||||||||
| 43 | |||||||||||
| 44 | sub alone_members { | ||||||||||
| 45 | 2 | ▶ | my $self = shift; | ||||||||
|
Subroutine
alone_members: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 46 | 2 | return $self->members_of($AloneMembers, (caller)[2]); | |||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | sub main_members { | ||||||||||
| 50 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
main_members: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 51 | 1 | return $self->members_of($MainMembers, (caller)[2]); | |||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | sub members_of { | ||||||||||
| 55 | 5 | ▶ | my ($self, $team, $line) = @_; | ||||||||
|
Subroutine
members_of: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 56 | 5 | my @members; | |||||||||
| 57 | |||||||||||
| 58 | 5 | for my $member_name (@{ $team }){ | |||||||||
| 59 | 11 | my $pkg = "Acme::MadokaMagica::TvMembers::$member_name"; | |||||||||
| 60 | 11 | ▶ | if (eval "require $pkg;1;"){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 61 | # push @members,$pkg->new($line); | ||||||||||
| 62 | 11 | push @members,$pkg->new({"line" => $line}); | |||||||||
| 63 | } | ||||||||||
| 64 | } | ||||||||||
| 65 | |||||||||||
| 66 | 5 | return @members; | |||||||||
| 67 | } | ||||||||||
| 68 | |||||||||||
| 69 | 5 | 1; | |||||||||
| 70 | __END__ | ||||||||||