line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MAB2::Record::gkd; |
2
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
3
|
2
|
|
|
2
|
|
9
|
use base qw(MAB2::Record::Base); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
160
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
63
|
|
6
|
2
|
|
|
2
|
|
27
|
use overload '""' => "as_string"; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
12
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
my $KDocs; |
9
|
|
|
|
|
|
|
my $RDocs; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
local $/; |
13
|
|
|
|
|
|
|
my $strdocs = ; |
14
|
|
|
|
|
|
|
close DATA; |
15
|
|
|
|
|
|
|
($KDocs, $RDocs) = __PACKAGE__->parsedoc($strdocs); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# cannot inherit, $RDocs is different here |
19
|
|
|
|
|
|
|
sub segmentname { |
20
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
21
|
0
|
|
|
|
|
|
my $rec = shift; |
22
|
0
|
|
0
|
|
|
|
my $ret = $RDocs->{$rec}[3] || $self->SUPER::segmentname($rec); |
23
|
|
|
|
|
|
|
# warn "ret[$ret]"; |
24
|
0
|
|
|
|
|
|
$ret; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# gkdmab.txt |
30
|
|
|
|
|
|
|
__DATA__ |