line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::VisualPrintf::IO; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
334232
|
use v5.10; |
|
5
|
|
|
|
|
68
|
|
4
|
5
|
|
|
5
|
|
26
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
172
|
|
5
|
5
|
|
|
5
|
|
28
|
use warnings; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
176
|
|
6
|
|
|
|
|
|
|
|
7
|
5
|
|
|
5
|
|
2790
|
use IO::Handle; |
|
5
|
|
|
|
|
31011
|
|
|
5
|
|
|
|
|
239
|
|
8
|
5
|
|
|
5
|
|
1691
|
use Text::VisualPrintf; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
559
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @EXPORT_OK = qw(printf vprintf); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub import { |
13
|
5
|
|
|
5
|
|
58
|
my $pkg = shift; |
14
|
5
|
|
|
|
|
23
|
for my $func (@_) { |
15
|
8
|
50
|
|
|
|
16
|
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
|
|
39
|
no strict 'refs'; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
167
|
|
20
|
5
|
|
|
5
|
|
29
|
no warnings 'once', 'redefine'; |
|
5
|
|
|
|
|
6
|
|
|
5
|
|
|
|
|
508
|
|
21
|
8
|
|
|
|
|
20
|
*{"IO::Handle::$func"} = \&Text::VisualPrintf::printf; |
|
8
|
|
|
|
|
1544
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |