line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Text::QueryString; |
2
|
1
|
|
|
1
|
|
929
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
3
|
1
|
|
|
1
|
|
6
|
use XSLoader; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
93
|
|
4
|
|
|
|
|
|
|
our $VERSION; |
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
3
|
$VERSION = '0.03'; |
7
|
1
|
50
|
|
|
|
6
|
if ($ENV{PERL_TEXT_QUERYSTRING_BACKEND} eq 'PP') { |
8
|
0
|
|
|
|
|
0
|
require Text::QueryString::PP; |
9
|
1
|
|
|
1
|
|
15
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
125
|
|
10
|
0
|
|
|
|
|
0
|
*parse = \&Text::QueryString::PP::parse; |
11
|
|
|
|
|
|
|
} else { |
12
|
1
|
|
|
|
|
3
|
eval { |
13
|
1
|
|
|
|
|
586
|
XSLoader::load(__PACKAGE__, $VERSION); |
14
|
1
|
|
|
|
|
10
|
require constant; |
15
|
1
|
|
|
|
|
60
|
constant->import(BACKEND => "XS"); |
16
|
|
|
|
|
|
|
}; |
17
|
1
|
50
|
|
|
|
56
|
if ($@) { |
18
|
0
|
|
|
|
|
0
|
warn "Failed to require Text::QueryString XS backend: $@"; |
19
|
0
|
|
|
|
|
0
|
require Text::QueryString::PP; |
20
|
1
|
|
|
1
|
|
5
|
no strict 'refs'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
43
|
|
21
|
0
|
|
|
|
|
0
|
*parse = \&Text::QueryString::PP::parse; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
0
|
2208
|
sub new { bless {}, shift } |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |