line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pcore::Util::URI::Path; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
32
|
use Pcore; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
31
|
|
4
|
5
|
|
|
5
|
|
30
|
use base qw[Pcore::Util::Path]; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
1120
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use overload # |
7
|
|
|
|
|
|
|
q[""] => sub { |
8
|
3
|
|
|
3
|
|
119
|
return $_[0]->to_uri; |
9
|
|
|
|
|
|
|
}, |
10
|
|
|
|
|
|
|
q[cmp] => sub { |
11
|
21
|
100
|
|
21
|
|
408
|
return !$_[2] ? $_[0]->to_uri cmp $_[1] : $_[1] cmp $_[0]->to_uri; |
12
|
|
|
|
|
|
|
}, |
13
|
|
|
|
|
|
|
q[~~] => sub { |
14
|
0
|
0
|
|
0
|
|
|
return !$_[2] ? $_[0]->to_uri ~~ $_[1] : $_[1] ~~ $_[0]->to_uri; |
15
|
|
|
|
|
|
|
}, |
16
|
5
|
|
|
5
|
|
31
|
fallback => undef; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
60
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
=pod |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=encoding utf8 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Pcore::Util::URI::Path |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 METHODS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SEE ALSO |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |