line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package DWH_File::Subscript; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
160
|
use warnings; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
369
|
|
4
|
9
|
|
|
9
|
|
49
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
335
|
|
5
|
9
|
|
|
9
|
|
47
|
use vars qw( @ISA $VERSION ); |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
1151
|
|
6
|
|
|
|
|
|
|
use overload |
7
|
9
|
|
|
|
|
94
|
'""' => \&to_string, |
8
|
9
|
|
|
9
|
|
53
|
fallback => 1; |
|
9
|
|
|
|
|
18
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
@ISA = qw( ); |
11
|
|
|
|
|
|
|
$VERSION = 0.01; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
329
|
|
|
329
|
0
|
489
|
my ( $this, $string ) = @_; |
15
|
329
|
|
33
|
|
|
1900
|
my $class = ref $this || $this; |
16
|
329
|
|
|
|
|
427
|
my $self = \$string; |
17
|
329
|
|
|
|
|
873
|
bless $self, $class; |
18
|
329
|
|
|
|
|
1033
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub from_input { |
22
|
329
|
|
|
329
|
0
|
632
|
my ( $this, $owner, $actual ) = @_; |
23
|
329
|
50
|
|
|
|
739
|
defined $actual or $actual = ''; |
24
|
329
|
|
|
|
|
1443
|
return $this->new( pack( 'L', $owner->{ id } ) . $actual ); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub to_string { |
28
|
463
|
|
|
463
|
0
|
546
|
return ${ $_[ 0 ] }; |
|
463
|
|
|
|
|
6306
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub actual { |
32
|
80
|
|
|
80
|
0
|
85
|
my ( $ignore, $actual ) = unpack "La*", ${ $_[ 0 ] }; |
|
80
|
|
|
|
|
240
|
|
33
|
80
|
|
|
|
|
192
|
return $actual; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |