8 perl perlfaq perlfaq1 perlfaq2 perlfaq3 perlfaq4 perlfaq5
9 perlfaq6 perlfaq7 perlfaq8 perlfaq9 perldelta perldata
10 perlsyn perlop perlre perlrun perlfunc perlvar perlsub
11 perlmod perlmodlib perlmodinstall perlform perllocale perlref perldsc
12 perllol perltoot perlobj perltie perlbot perlipc perldebug
13 perldiag perlsec perltrap perlport perlstyle perlpod perlbook
14 perlembed perlapio perlxs perlxstut perlguts perlcall
18 for (@pods) { s/$/.pod/ }
23 ($_= <<EOPOD2B) =~ s/^\t//gm && output($_);
27 perltoc - perl documentation table of contents
31 This page provides a brief table of contents for the rest of the Perl
32 documentation set. It is meant to be scanned quickly or grepped
33 through to locate the proper section you're looking for.
35 =head1 BASIC DOCUMENTATION
42 find \&getpods => qw(../lib ../ext);
46 # Skip .pm files that have corresponding .pod files, and Functions.pm.
47 return if /(.*)\.pm$/ && -f "$1.pod";
48 my $file = $File::Find::name;
49 return if $file eq '../lib/Pod/Functions.pm'; # Used only by pod itself
51 die "tut $name" if $file =~ /TUT/;
52 unless (open (F, "< $_\0")) {
53 warn "bogus <$file>: $!";
54 system "ls", "-l", $file;
59 if ($line =~ /^=head1\s+NAME\b/) {
70 die "no pods" unless @modpods;
73 #($name) = /(\w+)\.p(m|od)$/;
74 $name = path2modname($_);
75 if ($name =~ /^[a-z]/) {
79 # warn "already did $_\n";
87 ($_= <<EOPOD2B) =~ s/^\t//gm && output($_);
91 =head1 PRAGMA DOCUMENTATION
95 podset(sort @pragmata);
97 ($_= <<EOPOD2B) =~ s/^\t//gm && output($_);
101 =head1 MODULE DOCUMENTATION
105 podset( @modules[ sort { $modname[$a] cmp $modname[$b] } 0 .. $#modules ] );
107 ($_= <<EOPOD2B) =~ s/^\t//gm;
110 =head1 AUXILIARY DOCUMENTATION
112 Here should be listed all the extra programs' documentation, but they
113 don't all have manual pages yet:
136 Larry Wall <F<larry\@wall.org>>, with the help of oodles
142 output "\n"; # flush $LINE
149 if (s/^=head1 (NAME)\s*/=head2 /) {
150 $pod = path2modname($ARGV);
153 output "\n \n\n=head2 ";
155 if ( /^\s*$pod\b/ ) {
156 s/$pod\.pm/$pod/; # '.pm' in NAME !?
164 if (s/^=head1 (.*)/=item $1/) {
166 output $_; nl(); next;
168 if (s/^=head2 (.*)/=item $1/) {
170 output "=over\n\n" unless $inhead2;
172 output $_; nl(); next;
175 if (s/^=item ([^=].*)\n/$1/) {
176 next if $pod eq 'perldiag';
177 s/^\s*\*\s*$// && next;
181 next if $pod eq 'perlmodlib' && /^ftp:/;
182 ##print "=over\n\n" unless $initem;
183 output ", " if $initem;
203 output "\n\n=back\n\n";
212 ##print "\n\n=back\n\n";
221 my $NEWLINE; # how many newlines have we seen recently
222 my $LINE; # what remains to be printed
225 for (split /(\n)/, shift) {
228 print wrap('', '', $LINE);
236 elsif (/\S/ && length) {