line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tie::StorableDir::BackedScalar; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
172
|
use 5.008; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
167
|
|
4
|
4
|
|
|
4
|
|
24
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
144
|
|
5
|
4
|
|
|
4
|
|
25
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
178
|
|
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
29
|
use base 'Tie::Scalar'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
6981
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub TIESCALAR { |
10
|
0
|
|
|
0
|
|
|
my ($class, $parent, $backing) = @_; |
11
|
0
|
|
0
|
|
|
|
$class = ref $class || $class; |
12
|
0
|
|
|
|
|
|
my $self = [$backing, $parent]; |
13
|
0
|
|
|
|
|
|
bless $self, $class; |
14
|
0
|
|
|
|
|
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub FETCH { |
18
|
0
|
|
|
0
|
|
|
my ($self) = @_; |
19
|
0
|
|
|
|
|
|
return $self->[1]->translate(${$self->[0]}); |
|
0
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub STORE { |
23
|
0
|
|
|
0
|
|
|
my ($self, $value) = @_; |
24
|
0
|
|
|
|
|
|
$self->[0] = $value; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |