line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::HyperGlossary::Word::Definition; |
2
|
1
|
|
|
1
|
|
1180
|
use base qw(WWW::HyperGlossary::Base); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
85
|
|
3
|
1
|
|
|
1
|
|
5
|
use Class::Std; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
4
|
1
|
|
|
1
|
|
93
|
use Class::Std::Utils; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
40
|
use DBI; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
6
|
1
|
|
|
1
|
|
4
|
use DBIx::MySperql qw(DBConnect SQLExec $dbh); |
|
1
|
|
|
|
|
22
|
|
|
1
|
|
|
|
|
153
|
|
7
|
1
|
|
|
1
|
|
5
|
use Digest::MD5 qw (md5_hex); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
10
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
11
|
1
|
|
|
1
|
|
4
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
55
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
5
|
use version; our $VERSION = qv('0.0.2'); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
{ |
16
|
|
|
|
|
|
|
my %definition_id_of : ATTR( :init_arg ); |
17
|
|
|
|
|
|
|
my %word_id_of : ATTR( :init_arg ); |
18
|
|
|
|
|
|
|
my %language_id_of : ATTR( :init_arg ); |
19
|
|
|
|
|
|
|
my %word_of : ATTR( :init_arg ); |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
0
|
|
sub get_word_id { my ($self) = @_; return $word_id_of{ident $self}; } |
|
0
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
0
|
|
sub get_language_id { my ($self) = @_; return $language_id_of{ident $self}; } |
|
0
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
0
|
|
sub get_word { my ($self) = @_; return $word_of{ident $self}; } |
|
0
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
0
|
|
sub get_definition_id { my ($self) = @_; return $definition_id_of{ident $self}; } |
|
0
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub BUILD { |
27
|
0
|
|
|
0
|
0
|
|
my ($self, $ident, $arg_ref) = @_; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
0
|
|
sub get_definitions { |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
38
|
|
|
|
|
|
|
__END__ |