3
# Time-stamp: "2004-05-23 19:48:32 ADT"
5
# Summary of, well, things.
16
Pod::Simple::BlackBox Pod::Simple::Checker Pod::Simple::DumpAsText
17
Pod::Simple::DumpAsXML Pod::Simple::HTML Pod::Simple::HTMLBatch
18
Pod::Simple::HTMLLegacy Pod::Simple::LinkSection Pod::Simple::Methody
19
Pod::Simple::Progress Pod::Simple::PullParser
20
Pod::Simple::PullParserEndToken Pod::Simple::PullParserStartToken
21
Pod::Simple::PullParserTextToken Pod::Simple::PullParserToken
22
Pod::Simple::RTF Pod::Simple::Search Pod::Simple::SimpleTree
23
Pod::Simple::Text Pod::Simple::TextContent Pod::Simple::TiedOutFH
24
Pod::Simple::Transcode Pod::Simple::XMLOutStream
27
plan tests => 2 + @modules;
33
foreach my $m (@modules) {
34
print "# Loading $m ...\n";
36
unless($@) { ok 1; next }
39
$e =~ s/[\n\r]+/\n# > /;
40
print "# Error while trying to load $m --\n# > $e\n";
48
defined($^V) ? sprintf('%vd', $^V) : $],
50
(defined(&Win32::BuildNumber) and defined &Win32::BuildNumber())
51
? ("(Win32::BuildNumber ", &Win32::BuildNumber(), ")") : (),
52
(defined $MacPerl::Version)
53
? ("(MacPerl version $MacPerl::Version)") : (),
57
# Ugly code to walk the symbol tables:
59
my @stack = (''); # start out in %::
65
die "Too many packages?" if ++$count > 1000;
66
next if exists $v{$this};
67
next if $this eq 'main'; # %main:: is %::
69
#print "Peeking at $this => ${$this . '::VERSION'}\n";
71
if( defined ${$this . '::VERSION'} ) {
72
$v{$this} = ${$this . '::VERSION'}
74
defined *{$this . '::ISA'} or defined &{$this . '::import'}
75
or ($this ne '' and grep defined *{$_}{'CODE'}, values %{$this . "::"})
76
# If it has an ISA, an import, or any subs...
78
# It's a class/module with no version.
81
# It's probably an unpopulated package.
85
$pref = length($this) ? "$this\::" : '';
86
push @stack, map m/^(.+)::$/ ? "$pref$1" : (),
87
do { no strict 'refs'; keys %{$this . '::'} };
88
#print "Stack: @stack\n";
90
push @out, " Modules in memory:\n";
91
delete @v{'', '[none]'};
92
foreach my $p (sort {lc($a) cmp lc($b)} keys %v) {
93
my $indent = ' ' x (2 + ($p =~ tr/:/:/));
94
push @out, ' ', $indent, $p, defined($v{$p}) ? " v$v{$p};\n" : ";\n";
96
push @out, sprintf "[at %s (local) / %s (GMT)]\n",
97
scalar(gmtime), scalar(localtime);
98
my $x = join '', @out;
104
(chr(65) eq 'A') ? " in an ASCII world.\n" : " in a non-ASCII world.\n",
108
print "# \@INC:\n", map("# [$_]\n", @INC), "#\n#\n";
111
foreach my $x (sort {lc($a) cmp lc($b)} keys %INC) {
112
print "# [$x] = [", $INC{$x} || '', "]\n";