line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CGI::Builder::PathInfoMagic; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
100997
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
76
|
|
4
|
2
|
|
|
2
|
|
12
|
use base qw/CGI::Builder/; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1705
|
|
5
|
2
|
|
|
2
|
|
14
|
use vars qw/$VERSION/; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
392
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.03'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub process { |
9
|
0
|
|
|
0
|
0
|
|
my $s = shift; |
10
|
0
|
|
0
|
|
|
|
my $p = __path_info_magic() || 'index' ; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
$s->SUPER::process( $p ); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub __path_info_magic{ |
16
|
0
|
|
0
|
0
|
|
|
my $path = $ENV{PATH_INFO} || '/'; |
17
|
0
|
|
|
|
|
|
my @path_entries = split( '/' , $path ); |
18
|
0
|
|
|
|
|
|
return join( '_' , @path_entries[1..$#path_entries] ); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
CGI::Builder::PathInfoMagic - Deprecated. Use CGI::Builder::GetPageName instead. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This module is deprecated. please use CGI::Builder::GetPageName istead. Thanks. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SEE ALSO |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
CGI::Builder::GetPageName |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Tomohiro Teranishi |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 COPYRIGHT |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This program is distributed under the Artistic License |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=cut |