line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Rename::Unicode;
|
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
56
|
use 5.012;
|
|
3
|
|
|
|
|
10
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
17
|
use strict;
|
|
3
|
|
|
|
|
13
|
|
|
3
|
|
|
|
|
70
|
|
6
|
3
|
|
|
3
|
|
15
|
use warnings;
|
|
3
|
|
|
|
|
17
|
|
|
3
|
|
|
|
|
107
|
|
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
16
|
use Encode qw(encode decode);
|
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
322
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.30';
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub code {
|
13
|
3
|
|
|
3
|
1
|
10
|
my $code = shift;
|
14
|
3
|
|
|
|
|
4
|
my $encoding = shift;
|
15
|
|
|
|
|
|
|
return
|
16
|
|
|
|
|
|
|
sub {
|
17
|
3
|
|
|
3
|
|
21
|
use feature 'unicode_strings';
|
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
761
|
|
18
|
3
|
100
|
|
3
|
|
8
|
if ( $encoding ) {
|
19
|
1
|
|
|
|
|
9
|
$_ = decode($encoding, $_);
|
20
|
|
|
|
|
|
|
}
|
21
|
|
|
|
|
|
|
else {
|
22
|
2
|
|
|
|
|
8
|
utf8::upgrade $_;
|
23
|
|
|
|
|
|
|
}
|
24
|
3
|
|
|
|
|
104
|
$code->();
|
25
|
3
|
100
|
|
|
|
21
|
if ( $encoding ) {
|
26
|
1
|
|
|
|
|
4
|
$_ = encode($encoding, $_);
|
27
|
|
|
|
|
|
|
}
|
28
|
3
|
|
|
|
|
18
|
};
|
29
|
|
|
|
|
|
|
}
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1;
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__
|