line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
329853
|
use strict; use warnings; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
62
|
|
2
|
|
|
|
|
|
|
package Convert::Base32::Crockford; |
3
|
|
|
|
|
|
|
our $VERSION = '0.16'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
876
|
use Convert::Base32 (); |
|
1
|
|
|
|
|
2728
|
|
|
1
|
|
|
|
|
26
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use base 'Exporter'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
203
|
|
8
|
|
|
|
|
|
|
our @EXPORT = qw(encode_base32 decode_base32); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub encode_base32 { |
11
|
5
|
|
|
5
|
1
|
4368
|
my $base32 = Convert::Base32::encode_base32($_[0]); |
12
|
5
|
|
|
|
|
1665
|
$base32 =~ |
13
|
|
|
|
|
|
|
tr {abcdefghijklmnopqrstuvwxyz234567} |
14
|
|
|
|
|
|
|
{0123456789ABCDEFGHJKMNPQRSTVWXYZ}; |
15
|
5
|
|
|
|
|
26
|
return $base32; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub decode_base32 { |
19
|
20
|
|
|
20
|
1
|
12385
|
my $string = uc($_[0]); |
20
|
20
|
|
|
|
|
41
|
$string =~ |
21
|
|
|
|
|
|
|
tr {0O1IL23456789ABCDEFGHJKMNPQRSTVWXYZ-} |
22
|
|
|
|
|
|
|
{aabbbcdefghijklmnopqrstuvwxyz234567}d; |
23
|
20
|
|
|
|
|
68
|
return Convert::Base32::decode_base32($string); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |