line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#line 1 |
2
|
1
|
|
|
1
|
|
5
|
package Test::SharedFork::Scalar; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1377
|
|
5
|
|
|
|
|
|
|
use base 'Tie::Scalar'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# create new tied scalar |
8
|
1
|
|
|
1
|
|
4
|
sub TIESCALAR { |
9
|
1
|
|
|
|
|
8
|
my ($class, $initial, $share) = @_; |
10
|
|
|
|
|
|
|
bless { share => $share }, $class; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
26
|
|
|
26
|
|
88
|
sub FETCH { |
14
|
26
|
|
|
|
|
128
|
my $self = shift; |
15
|
|
|
|
|
|
|
$self->{share}->get('scalar'); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
7
|
|
|
7
|
|
16
|
sub STORE { |
19
|
7
|
|
|
|
|
10
|
my ($self, $val) = @_; |
20
|
7
|
|
|
|
|
36
|
my $share = $self->{share}; |
21
|
|
|
|
|
|
|
$share->set('scalar' => $val); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |