line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Form::UrlEncoded; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
163817
|
use 5.008001; |
|
4
|
|
|
|
|
42
|
|
4
|
4
|
|
|
4
|
|
17
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
67
|
|
5
|
4
|
|
|
4
|
|
15
|
use warnings; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
695
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
BEGIN { |
8
|
4
|
|
|
4
|
|
13
|
our $VERSION = "0.26"; |
9
|
4
|
|
|
|
|
9
|
our @EXPORT_OK = qw/parse_urlencoded parse_urlencoded_arrayref build_urlencoded build_urlencoded_utf8/; |
10
|
|
|
|
|
|
|
|
11
|
4
|
|
|
|
|
9
|
my $use_pp = $ENV{WWW_FORM_URLENCODED_PP}; |
12
|
|
|
|
|
|
|
|
13
|
4
|
50
|
|
|
|
14
|
if (!$use_pp) { |
14
|
4
|
|
|
|
|
5
|
eval { |
15
|
4
|
|
|
|
|
607
|
require WWW::Form::UrlEncoded::XS; |
16
|
0
|
0
|
|
|
|
0
|
if ( $WWW::Form::UrlEncoded::XS::VERSION < $VERSION ) { |
17
|
0
|
|
|
|
|
0
|
warn "WWW::Form::UrlEncoded::XS $VERSION is require. fallback to PP version"; |
18
|
0
|
|
|
|
|
0
|
die; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
}; |
21
|
4
|
|
|
|
|
17
|
$use_pp = !!$@; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
4
|
50
|
|
|
|
13
|
if ($use_pp) { |
25
|
4
|
|
|
|
|
1310
|
require WWW::Form::UrlEncoded::PP; |
26
|
4
|
|
|
|
|
175
|
WWW::Form::UrlEncoded::PP->import(@EXPORT_OK); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
else { |
29
|
0
|
|
|
|
|
0
|
WWW::Form::UrlEncoded::XS->import(@EXPORT_OK); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
4
|
|
|
|
|
37
|
require Exporter; |
33
|
4
|
|
|
|
|
106
|
*import = \&Exporter::import; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |