line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tie::Alias::Handle; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
42641
|
use 5.008; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
301
|
|
4
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
48
|
|
5
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
50
|
|
6
|
1
|
|
|
1
|
|
6
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
265
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
0
|
0
|
|
sub isAlias { 1; }; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub TIEHANDLE { |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
0
|
|
|
croak "use open with a & in the mode to dup a handle"; #FIXME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# my ( $class , $ref ) = @_ ; |
17
|
|
|
|
|
|
|
# ref($ref) or croak "NOT A REFERENCE"; |
18
|
|
|
|
|
|
|
# if ( eval { tied($$ref) -> isAlias } ) { |
19
|
|
|
|
|
|
|
# # we are re-aliasing something |
20
|
|
|
|
|
|
|
# return tied ($$ref); |
21
|
|
|
|
|
|
|
# }else{ |
22
|
|
|
|
|
|
|
# # $ref is already a pointer to the object |
23
|
|
|
|
|
|
|
# bless $ref, $class; |
24
|
|
|
|
|
|
|
# }; |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
__END__ |