line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::VisualPrintf::IO; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
328813
|
use v5.10; |
|
5
|
|
|
|
|
56
|
|
4
|
5
|
|
|
5
|
|
25
|
use strict; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
153
|
|
5
|
5
|
|
|
5
|
|
29
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
163
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
2798
|
use IO::Handle; |
|
5
|
|
|
|
|
30589
|
|
|
5
|
|
|
|
|
220
|
|
8
|
5
|
|
|
5
|
|
1718
|
use Text::VisualPrintf; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
553
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @EXPORT_OK = qw(printf vprintf); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub import { |
13
|
5
|
|
|
5
|
|
55
|
my $pkg = shift; |
14
|
5
|
|
|
|
|
22
|
for my $func (@_) { |
15
|
8
|
50
|
|
|
|
20
|
unless (grep { $func eq $_ } @EXPORT_OK) { |
|
16
|
|
|
|
|
48
|
|
16
|
0
|
|
|
|
|
0
|
require Carp; |
17
|
0
|
|
|
|
|
0
|
Carp::croak "\"$func\" is not exported"; |
18
|
|
|
|
|
|
|
} |
19
|
5
|
|
|
5
|
|
34
|
no strict 'refs'; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
171
|
|
20
|
5
|
|
|
5
|
|
24
|
no warnings 'once', 'redefine'; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
536
|
|
21
|
8
|
|
|
|
|
16
|
*{"IO::Handle::$func"} = \&Text::VisualPrintf::printf; |
|
8
|
|
|
|
|
1500
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |