line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tie::Parent; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1807
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
5
|
1
|
|
|
1
|
|
3
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
163
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION = '1.10'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub TIESCALAR { |
10
|
1
|
|
|
1
|
|
854
|
my $class = shift; |
11
|
1
|
|
|
|
|
2
|
my ($obj, $field) = @_; |
12
|
1
|
|
|
|
|
2
|
my $this = {'obj' => $obj, 'field' => $field}; |
13
|
1
|
|
|
|
|
6
|
bless $this, $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub FETCH { |
17
|
0
|
|
|
0
|
|
|
my $this = shift; |
18
|
|
|
|
|
|
|
return $this->{'obj'}->{$this->{'field'}} || |
19
|
|
|
|
|
|
|
$this->{'obj'}->{uc($this->{'field'})} || |
20
|
0
|
|
0
|
|
|
|
$this->{'obj'}->{lc($this->{'field'})}; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub STORE { |
24
|
0
|
|
|
0
|
|
|
my ($this, $value) = @_; |
25
|
0
|
|
|
|
|
|
$this->{'obj'}->{$this->{'field'}} = $value; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |