X-Git-Url: http://git.shiar.nl/perl/plp/.git/blobdiff_plain/9b76d38ad3dc8f7135e5c2b1594e6815790808bc..9f59e7b75435e82578bc66328032e0d3510c5690:/eg/plpinfo.plp diff --git a/eg/plpinfo.plp b/eg/plpinfo.plp index 9578327..f25dc76 100644 --- a/eg/plpinfo.plp +++ b/eg/plpinfo.plp @@ -24,10 +24,11 @@ use Config; printf "%s%s\n", @$_ for ( ["System" => qx(uname -snrvm)], - ["Server API" => "CGI/FastCGI - ".$PLP::interface], #TODO - ["Perl" => join ".", map ord, split //, $^V], - ["Build Date" => $Config{cf_time}], - ["Debug Build" => $^P ? "yes" : "no"], + ["Server API" => $PLP::interface ? $PLP::interface : "?"], + ["Perl" => sprintf '%vd', $^V], + ["Perl API" => $Config{api_versionstring} || "?"], + ["Build Date" => $Config{cf_time} || "?"], + ["Debug Build" => $^P ? "yes ($^P)" : "no"], ["Thread Safety" => $Config{usethreads} ? "enabled" : "disabled"], ["Include Path" => join "; ", @INC], ); @@ -40,13 +41,13 @@ printf "%s%s\n", @$_ for ( my %modules; s!/!::!g, s/\.pm$// and $modules{$_} = $_->VERSION || "" for keys %INC; printf "%s%s\n", @$_ for ( - ["Modules" => join "
\n", + ["Loaded Modules" => join "
\n", map "$_ $modules{$_}", sort grep /^PLP/, keys %modules ], - ["Debug Output" => join "; ", + ["Debug Output" => join("; ", $PLP::DEBUG & 1 ? "run-time errors" : (), $PLP::DEBUG & 2 ? "headers" : (), - ], + ) || "disabled"], ["Caching" => $PLP::use_cache ? "on" : "off"], #TODO ); :> @@ -65,7 +66,7 @@ printf("%s%s\n", <: -for my $var qw(get post cookies header) { +for my $var (qw[ get post cookies header ]) { printf("\n", $var, $_, defined $$var{$_} ? $$var{$_} : "no value" ) for sort keys %$var;
%s{'%s'}%s