line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Demo::Action::Print; |
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
175
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
sub new{ |
6
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
7
|
0
|
|
|
|
|
|
my $args = shift; |
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
|
|
|
my $self = {}; |
10
|
0
|
|
|
|
|
|
my $logger = Log::Log4perl->get_logger( __PACKAGE__ ); |
11
|
0
|
|
|
|
|
|
$self->{logger} = $logger; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
bless $self, $class; |
14
|
0
|
|
|
|
|
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub run{ |
18
|
0
|
|
|
0
|
0
|
|
my( $self, $character, $event ) = @_; |
19
|
0
|
|
|
|
|
|
my @args = @{ $event->args() }; |
|
0
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
foreach( @args ){ |
21
|
0
|
|
|
|
|
|
printf( ">> %-12s : %s\n", $character->name() . ' says', $_ ); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |