line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
3
|
|
|
3
|
|
1943
|
use strict; use warnings; |
|
3
|
|
|
3
|
|
6
|
|
|
3
|
|
|
|
|
130
|
|
|
3
|
|
|
|
|
16
|
|
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
147
|
|
2
|
|
|
|
|
|
|
package IO::All::String; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
14
|
use IO::All -base; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
const type => 'string'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub string_ref { |
9
|
3
|
|
|
3
|
1
|
8
|
my ($self, $ref) = @_; |
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
16
|
no strict 'refs'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
488
|
|
12
|
3
|
100
|
|
|
|
8
|
*$self->{ref} = $ref if exists $_[1]; |
13
|
|
|
|
|
|
|
|
14
|
3
|
|
|
|
|
10
|
return *$self->{ref} |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub string { |
18
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
19
|
1
|
|
|
|
|
3
|
bless $self, __PACKAGE__; |
20
|
1
|
|
|
|
|
6
|
$self->_init; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub open { |
24
|
1
|
|
|
1
|
1
|
1
|
my $self = shift; |
25
|
1
|
|
|
|
|
1
|
my $str = ''; |
26
|
1
|
|
|
|
|
2
|
my $ref = \$str; |
27
|
1
|
|
|
|
|
2
|
$self->string_ref($ref); |
28
|
1
|
|
|
1
|
|
28
|
open my $fh, '+<', $ref; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
29
|
1
|
|
|
|
|
965
|
$self->io_handle($fh); |
30
|
1
|
|
|
|
|
10
|
$self->_set_binmode; |
31
|
1
|
|
|
|
|
3
|
$self->is_open(1); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |