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