| 1 | package DTL::Fast::Filter::Wordcount; | ||
| 2 | 2 | ▶ | use strict; use utf8; use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use parent 'DTL::Fast::Filter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | $DTL::Fast::FILTER_HANDLERS{'wordcount'} = __PACKAGE__; | |
| 6 | |||
| 7 | #@Override | ||
| 8 | sub filter | ||
| 9 | { | ||
| 10 | 1 | ▶ | shift; # self |
|
Subroutine
filter: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 1 | shift; # filter_manager | |
| 12 | 1 | my $value = shift; | |
| 13 | 1 | shift; # context | |
| 14 | |||
| 15 | 1 | return scalar (my @tmp = split /\s+/s, $value); # Perl 5.10 compatibility, marks deprecated implicit split | |
| 16 | } | ||
| 17 | |||
| 18 | 2 | 1; | |