line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::YaTeA::ForbiddenStructure; |
2
|
5
|
|
|
5
|
|
32
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
134
|
|
3
|
5
|
|
|
5
|
|
31
|
use warnings; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
985
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION=$Lingua::YaTeA::VERSION; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub new |
8
|
|
|
|
|
|
|
{ |
9
|
200
|
|
|
200
|
1
|
380
|
my ($class,$form) = @_; |
10
|
200
|
|
|
|
|
353
|
my $this = {}; |
11
|
200
|
|
|
|
|
342
|
bless ($this,$class); |
12
|
200
|
|
|
|
|
452
|
$this->{FORM} = $form; |
13
|
200
|
|
|
|
|
409
|
$this->{LENGTH} = $this->setLength($form); |
14
|
200
|
|
|
|
|
436
|
return $this; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub setLength |
18
|
|
|
|
|
|
|
{ |
19
|
200
|
|
|
200
|
1
|
370
|
my ($this,$form) = @_; |
20
|
200
|
|
|
|
|
471
|
my @words = split (/ /,$form); |
21
|
200
|
|
|
|
|
463
|
return scalar @words; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub getLength |
25
|
|
|
|
|
|
|
{ |
26
|
214
|
|
|
214
|
0
|
385
|
my ($this) = @_; |
27
|
214
|
|
|
|
|
621
|
return $this->{LENGTH}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |