CGI-ExtDirect
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
examples/p5httpd view on Meta::CPAN
my ( $script, $arglist, $method ) = @_;
my ($dir) = ( $script =~ /^(.*\/)/ );
my $script_path = "$server_root$script";
my $script_text;
my $old_chdir = cwd();
chdir "$server_root$dir"
or return logerr 500, "Cannot chdir to $server_root$dir: $!";
$script_path =~ s/[A-Z]://;
# command line decoding, cf description at http://hoohoo.ncsa.uiuc.edu/cgi/cl.html:
local @ARGV;
unless ( $arglist =~ /=/ ) {
$arglist =~
s/%([\dA-Fa-f]{2})/chr(hex($1))/eg; # decode arglist, e.g. %20 -> space
@ARGV = split /\s+/, $arglist;
}
my $file_tastes_like_perl = 1;
if ( $eval_or_execute != $cgis_are_executed ) {
open CGI, $script_path
or return do {
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.563 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )