line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tie::Simple; |
2
|
|
|
|
|
|
|
$Tie::Simple::VERSION = '1.04'; |
3
|
4
|
|
|
4
|
|
82785
|
use strict; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
104
|
|
4
|
4
|
|
|
4
|
|
19
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
104
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
2149
|
use Tie::Simple::Scalar; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
271
|
|
7
|
4
|
|
|
4
|
|
2042
|
use Tie::Simple::Array; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
106
|
|
8
|
4
|
|
|
4
|
|
2103
|
use Tie::Simple::Hash; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
109
|
|
9
|
4
|
|
|
4
|
|
2006
|
use Tie::Simple::Handle; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
735
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# ABSTRACT: Variable ties made easier: much, much, much easier... |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub TIESCALAR { |
15
|
1
|
|
|
1
|
|
21
|
my ($class, $data, %subs) = @_; |
16
|
1
|
|
|
|
|
9
|
bless { data => $data, subs => \%subs }, 'Tie::Simple::Scalar'; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub TIEARRAY { |
20
|
1
|
|
|
1
|
|
51
|
my ($class, $data, %subs) = @_; |
21
|
1
|
|
|
|
|
8
|
bless { data => $data, subs => \%subs }, 'Tie::Simple::Array'; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub TIEHASH { |
25
|
1
|
|
|
1
|
|
34
|
my ($class, $data, %subs) = @_; |
26
|
1
|
|
|
|
|
8
|
bless { data => $data, subs => \%subs }, 'Tie::Simple::Hash'; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub TIEHANDLE { |
30
|
2
|
|
|
2
|
|
1339
|
my ($class, $data, %subs) = @_; |
31
|
2
|
|
|
|
|
13
|
bless { data => $data, subs => \%subs }, 'Tie::Simple::Handle'; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |