line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Encode::InCharset; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
27576
|
use 5.007003; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
68
|
|
4
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
66
|
|
5
|
2
|
|
|
2
|
|
22
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
214
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = do { my @r = (q$Revision: 0.3 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; |
8
|
|
|
|
|
|
|
our $DEBUG = 1; |
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
1143
|
use Encode::InCharset::Config; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
69
|
|
11
|
2
|
|
|
2
|
|
16
|
use Carp; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
289
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub import{ |
14
|
2
|
|
|
2
|
|
16
|
my $class = shift; |
15
|
2
|
|
|
|
|
4
|
my $callpkg = caller; |
16
|
2
|
50
|
|
|
|
134
|
my @sub = @_ ? @_ : sort keys %Encode::InCharset::Config::InPM; |
17
|
2
|
|
|
|
|
13
|
for my $sub (@sub){ |
18
|
2
|
|
|
2
|
|
9
|
no strict 'refs'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
392
|
|
19
|
220
|
50
|
|
|
|
642
|
my $mod = $Encode::InCharset::Config::InPM{$sub} or |
20
|
|
|
|
|
|
|
croak "Unknown property: $sub"; |
21
|
220
|
|
|
|
|
310
|
my $modfile = $mod; $modfile =~ s,::,/,go; |
|
220
|
|
|
|
|
832
|
|
22
|
220
|
|
|
|
|
307
|
eval { require "$modfile.pm" }; |
|
220
|
|
|
|
|
181717
|
|
23
|
220
|
50
|
|
|
|
729
|
$@ and croak $@; |
24
|
220
|
|
|
|
|
238
|
*{"$callpkg\::$sub"} = \&{"$mod\::$sub"}; |
|
220
|
|
|
|
|
1340
|
|
|
220
|
|
|
|
|
732
|
|
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
__END__ |