line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DTL::Fast::Filter::Wordcount; |
2
|
2
|
|
|
2
|
|
1214
|
use strict; use utf8; use warnings FATAL => 'all'; |
|
2
|
|
|
2
|
|
4
|
|
|
2
|
|
|
2
|
|
47
|
|
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
46
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
72
|
|
3
|
2
|
|
|
2
|
|
10
|
use parent 'DTL::Fast::Filter'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
$DTL::Fast::FILTER_HANDLERS{'wordcount'} = __PACKAGE__; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
#@Override |
8
|
|
|
|
|
|
|
sub filter |
9
|
|
|
|
|
|
|
{ |
10
|
1
|
|
|
1
|
0
|
2
|
shift; # self |
11
|
1
|
|
|
|
|
2
|
shift; # filter_manager |
12
|
1
|
|
|
|
|
2
|
my $value = shift; |
13
|
1
|
|
|
|
|
1
|
shift; # context |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
9
|
return scalar (my @tmp = split /\s+/s, $value); # Perl 5.10 compatibility, marks deprecated implicit split |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |