line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package ESPPlus::Storage::Reader::Tie; |
2
|
1
|
|
|
1
|
|
34344
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
36
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
586
|
use ESPPlus::Storage; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use base 'Tie::Handle'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
1090
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub TIEHANDLE { |
9
|
1
|
|
|
1
|
|
81225
|
my $class = shift; |
10
|
1
|
|
|
|
|
11
|
my $self = {}; |
11
|
1
|
|
|
|
|
22
|
$self->{'storage'} = ESPPlus::Storage->new( shift ); |
12
|
1
|
|
|
|
|
11
|
$self->{'reader'} = $self->{'storage'}->reader; |
13
|
|
|
|
|
|
|
# writer? |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
8
|
bless $self, $class; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
#sub READ { read shift()->{'reader'}->handle(), shift, shift, shift } |
19
|
0
|
|
|
0
|
|
0
|
sub SEEK { seek shift()->{'reader'}->handle(), shift, shift } |
20
|
0
|
|
|
0
|
|
0
|
sub TELL { tell shift()->{'reader'}->handle } |
21
|
0
|
|
|
0
|
|
0
|
sub EOF { eof shift()->{'reader'}->handle } |
22
|
|
|
|
|
|
|
sub READLINE { |
23
|
1
|
|
|
1
|
|
832
|
my $rd = shift()->{'reader'}; |
24
|
|
|
|
|
|
|
|
25
|
1
|
50
|
|
|
|
9
|
return $rd->next_record_body unless wantarray; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
|
|
|
local $_; |
28
|
0
|
|
|
|
|
|
my @o; |
29
|
0
|
|
|
|
|
|
while (my $rec = $rd->next_record_body) { |
30
|
0
|
|
|
|
|
|
push @o, $rec; |
31
|
|
|
|
|
|
|
} |
32
|
0
|
|
|
|
|
|
return @o; |
33
|
|
|
|
|
|
|
} |
34
|
0
|
|
|
0
|
|
|
sub CLOSE { close shift()->{'reader'}->handle } |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |