line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Getopt::ArgParse::ActionCount; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
619
|
use strict; |
|
9
|
|
|
|
|
11
|
|
|
9
|
|
|
|
|
266
|
|
4
|
9
|
|
|
9
|
|
36
|
use warnings; |
|
9
|
|
|
|
|
10
|
|
|
9
|
|
|
|
|
186
|
|
5
|
9
|
|
|
9
|
|
30
|
use Carp; |
|
9
|
|
|
|
|
10
|
|
|
9
|
|
|
|
|
1121
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub apply { |
8
|
4
|
|
|
4
|
0
|
21
|
my $self = shift; |
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
|
|
5
|
my ($spec, $namespace, $values) = @_; |
11
|
|
|
|
|
|
|
|
12
|
4
|
|
50
|
|
|
8
|
$values ||= []; |
13
|
|
|
|
|
|
|
|
14
|
4
|
|
100
|
|
|
6
|
my $v = $namespace->get_attr($spec->{dest}) || 0; |
15
|
|
|
|
|
|
|
|
16
|
4
|
|
|
|
|
10
|
$namespace->set_attr( $spec->{dest}, $v + scalar(@$values) ); |
17
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
7
|
return ''; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 AUTHOR |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Mytram (original author) |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This software is Copyright (c) 2014 by Mytram. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
This is free software, licensed under: |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |