X-Git-Url: http://git.shiar.nl/gitweb.cgi/perl/plp/.git/blobdiff_plain/2f378f2720eee237f7dbe20643d6c2626c038580..7e698b486410e08e8120786f7c39f250bc4ee0bb:/eg/plpinfo.plp?ds=inline
diff --git a/eg/plpinfo.plp b/eg/plpinfo.plp
index 748d40c..9b3b704 100644
--- a/eg/plpinfo.plp
+++ b/eg/plpinfo.plp
@@ -25,9 +25,10 @@ use Config;
printf "
%s | %s |
\n", @$_ for (
["System" => qx(uname -snrvm)],
["Server API" => $PLP::interface ? $PLP::interface : "?"],
- ["Perl" => join ".", map ord, split //, $^V],
- ["Build Date" => $Config{cf_time}],
- ["Debug Build" => $^P ? "yes" : "no"],
+ ["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
);
:>