line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
45345
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
151
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Stdout; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub TIEHANDLE |
7
|
|
|
|
|
|
|
{ |
8
|
1
|
|
|
1
|
|
3
|
my $class = shift; |
9
|
1
|
|
|
|
|
3
|
my $self = {}; |
10
|
1
|
|
|
|
|
3
|
$self->{string} = shift; |
11
|
1
|
|
50
|
|
|
3
|
${ $self->{string} } ||= ''; |
|
1
|
|
|
|
|
14
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
|
|
6
|
return bless $self, $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub PRINT |
17
|
|
|
|
|
|
|
{ |
18
|
5000
|
|
|
5000
|
|
11801
|
my $self = shift; |
19
|
5000
|
|
|
|
|
11599
|
${ $self->{string} } .= join '', @_; |
|
5000
|
|
|
|
|
138839
|
|
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub PRINTF |
23
|
|
|
|
|
|
|
{ |
24
|
0
|
|
|
0
|
|
|
my $self = shift; |
25
|
0
|
|
|
|
|
|
my $format = shift; |
26
|
0
|
|
|
|
|
|
${ $self->{string} } .= sprintf($format, @_); |
|
0
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |