line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lingua::EN::Numbers::Easy; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1072
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
48
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
477
|
|
5
|
1
|
|
|
1
|
|
7
|
no warnings 'syntax'; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
72
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '2009110701'; |
8
|
|
|
|
|
|
|
our %N; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
2810
|
use Lingua::EN::Numbers 1.01; |
|
1
|
|
|
|
|
2313
|
|
|
1
|
|
|
|
|
142
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub import { |
13
|
1
|
50
|
|
1
|
|
10
|
my ($pkg, $hash) = grep {$_ ne 'American' and |
|
1
|
|
|
|
|
11
|
|
14
|
|
|
|
|
|
|
$_ ne 'British'} @_; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
|
|
2
|
my $callpkg = caller; |
17
|
1
|
50
|
|
|
|
5
|
$hash = 'N' unless defined $hash; |
18
|
1
|
|
|
|
|
2
|
$hash =~ s/^%//; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
7
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
266
|
|
21
|
1
|
|
|
|
|
3
|
*{"${callpkg}::$hash"} = \%N; |
|
1
|
|
|
|
|
2467
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
1
|
|
17
|
sub TIEHASH {bless {0 => 'zero'} => __PACKAGE__} |
26
|
|
|
|
|
|
|
sub FETCH { |
27
|
1
|
|
|
1
|
|
139
|
my $self = shift; |
28
|
1
|
|
|
|
|
3
|
my $value = shift; |
29
|
1
|
50
|
|
|
|
12
|
return $self -> {$value} if exists $self -> {$value}; |
30
|
1
|
0
|
|
|
|
169
|
(my $n = Lingua::EN::Numbers -> new) -> parse ($value) or return; |
31
|
0
|
|
|
|
|
|
$self -> {$value} = lc $n -> get_string; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
|
|
sub STORE {die} |
35
|
0
|
|
|
0
|
|
|
sub EXISTS {die} |
36
|
0
|
|
|
0
|
|
|
sub DELETE {die} |
37
|
0
|
|
|
0
|
|
|
sub CLEAR {die} |
38
|
0
|
|
|
0
|
|
|
sub FIRSTKEY {die} |
39
|
0
|
|
|
0
|
|
|
sub NEXTKEY {die} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
tie %N => __PACKAGE__; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |