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 perlfork perlform perllocale
12 perlref perlreftut perldsc
13 perllol perltoot perltootc perlobj perltie perlbot perlipc
14 perldbmfilter perldebug
15 perldiag perlsec perltrap perlport perlstyle perlpod perlbook
16 perlembed perlapio perlxs perlxstut perlguts perlcall perlcompile
20 for (@pods) { s/$/.pod/ }
25 ($_= <<EOPOD2B) =~ s/^\t//gm && output($_);
29 perltoc - perl documentation table of contents
33 This page provides a brief table of contents for the rest of the Perl
34 documentation set. It is meant to be scanned quickly or grepped
35 through to locate the proper section you're looking for.
37 =head1 BASIC DOCUMENTATION
44 find \&getpods => qw(../lib ../ext);
48 # Skip .pm files that have corresponding .pod files, and Functions.pm.
49 return if /(.*)\.pm$/ && -f "$1.pod";
50 my $file = $File::Find::name;
51 return if $file eq '../lib/Pod/Functions.pm'; # Used only by pod itself
53 die "tut $name" if $file =~ /TUT/;
54 unless (open (F, "< $_\0")) {
55 warn "bogus <$file>: $!";
56 system "ls", "-l", $file;
61 if ($line =~ /^=head1\s+NAME\b/) {
72 die "no pods" unless @modpods;
75 #($name) = /(\w+)\.p(m|od)$/;
76 $name = path2modname($_);
77 if ($name =~ /^[a-z]/) {
81 # warn "already did $_\n";
89 ($_= <<EOPOD2B) =~ s/^\t//gm && output($_);
93 =head1 PRAGMA DOCUMENTATION
97 podset(sort @pragmata);
99 ($_= <<EOPOD2B) =~ s/^\t//gm && output($_);
103 =head1 MODULE DOCUMENTATION
107 podset( @modules[ sort { $modname[$a] cmp $modname[$b] } 0 .. $#modules ] );
109 ($_= <<EOPOD2B) =~ s/^\t//gm;
112 =head1 AUXILIARY DOCUMENTATION
114 Here should be listed all the extra programs' documentation, but they
115 don't all have manual pages yet:
138 Larry Wall <F<larry\@wall.org>>, with the help of oodles
144 output "\n"; # flush $LINE
151 if (s/^=head1 (NAME)\s*/=head2 /) {
152 $pod = path2modname($ARGV);
155 output "\n \n\n=head2 ";
157 if ( /^\s*$pod\b/ ) {
158 s/$pod\.pm/$pod/; # '.pm' in NAME !?
166 if (s/^=head1 (.*)/=item $1/) {
168 output $_; nl(); next;
170 if (s/^=head2 (.*)/=item $1/) {
172 output "=over\n\n" unless $inhead2;
174 output $_; nl(); next;
177 if (s/^=item ([^=].*)\n/$1/) {
178 next if $pod eq 'perldiag';
179 s/^\s*\*\s*$// && next;
183 next if $pod eq 'perlmodlib' && /^ftp:/;
184 ##print "=over\n\n" unless $initem;
185 output ", " if $initem;
205 output "\n\n=back\n\n";
214 ##print "\n\n=back\n\n";
223 my $NEWLINE; # how many newlines have we seen recently
224 my $LINE; # what remains to be printed
227 for (split /(\n)/, shift) {
230 print wrap('', '', $LINE);
238 elsif (/\S/ && length) {