line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
503
|
use 5.008; |
|
1
|
|
|
|
|
3
|
|
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
16
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Acme::Marvel::CinematicUniverse::Character::Instance::Thor_Odinson; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TOBYINK'; |
8
|
|
|
|
|
|
|
our $VERSION = '0.003'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
5
|
use Acme::Marvel::CinematicUniverse::Character; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
110
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $instance; |
13
|
|
|
|
|
|
|
sub get { |
14
|
1
|
|
33
|
1
|
0
|
4
|
$instance ||= 'Acme::Marvel::CinematicUniverse::Character'->new( |
15
|
|
|
|
|
|
|
real_name => 'Thor Odinson', |
16
|
|
|
|
|
|
|
hero_name => 'Thor', |
17
|
|
|
|
|
|
|
intelligence => 2, |
18
|
|
|
|
|
|
|
strength => 7, |
19
|
|
|
|
|
|
|
speed => 7, |
20
|
|
|
|
|
|
|
durability => 6, |
21
|
|
|
|
|
|
|
energy_projection => 6, |
22
|
|
|
|
|
|
|
fighting_ability => 4, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub init { |
27
|
1
|
|
|
1
|
0
|
3
|
my ( $me, $collector ) = ( shift, @_ ); |
28
|
1
|
|
|
|
|
3
|
$collector->load_character( $me->get ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |