| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Tie::Filter::Scalar; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
31
|
use 5.008; |
|
|
1
|
|
|
|
|
5
|
|
|
|
1
|
|
|
|
|
49
|
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
40
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
32
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
5
|
use Tie::Filter; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
227
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = '1.02'; |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Tie::Filter::Scalar - Tie a facade around a scalar |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Don't use this package directly. Instead, see L. |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=cut |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub TIESCALAR { |
|
22
|
1
|
|
|
1
|
|
4
|
my ($class, $scalar, %args) = @_; |
|
23
|
1
|
|
|
|
|
2
|
$args{WRAP} = $scalar; |
|
24
|
1
|
|
|
|
|
7
|
return bless \%args, $class; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub FETCH { |
|
28
|
1
|
|
|
1
|
|
18
|
my $self = shift; |
|
29
|
1
|
|
|
|
|
2
|
Tie::Filter::_filter($$self{FETCH}, ${$$self{WRAP}}); |
|
|
1
|
|
|
|
|
4
|
|
|
30
|
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub STORE { |
|
33
|
1
|
|
|
1
|
|
760
|
my $self = shift; |
|
34
|
1
|
|
|
|
|
3
|
my $value = shift; |
|
35
|
1
|
|
|
|
|
12
|
${$$self{WRAP}} = Tie::Filter::_filter($$self{STORE}, $value); |
|
|
1
|
|
|
|
|
4
|
|
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
|
|
sub UNTIE { } |
|
39
|
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
|
|
sub DESTROY { } |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
L, L |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Andrew Sterling Hanenkamp, |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Copyright 2003 Andrew Sterling Hanenkamp. All Rights Reserved. This library is |
|
53
|
|
|
|
|
|
|
free software; you can redistribute it and/or modify it under the same terms as |
|
54
|
|
|
|
|
|
|
Perl itself. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1 |
|
59
|
|
|
|
|
|
|
|