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
17 perlapi perlintern perlhist
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:
141 Larry Wall <F<larry\@wall.org>>, with the help of oodles
147 output "\n"; # flush $LINE
154 if (s/^=head1 (NAME)\s*/=head2 /) {
155 $pod = path2modname($ARGV);
157 output "\n \n\n=head2 ";
159 if ( /^\s*$pod\b/ ) {
160 s/$pod\.pm/$pod/; # '.pm' in NAME !?
168 if (s/^=head1 (.*)/=item $1/) {
170 output "=over\n\n" unless $inhead1;
172 output $_; nl(); next;
174 if (s/^=head2 (.*)/=item $1/) {
176 output "=over\n\n" unless $inhead2;
178 output $_; nl(); next;
180 if (s/^=item ([^=].*)\n/$1/) {
181 next if $pod eq 'perldiag';
182 s/^\s*\*\s*$// && next;
186 next if $pod eq 'perlmodlib' && /^ftp:/;
187 ##print "=over\n\n" unless $initem;
188 output ", " if $initem;
194 if (s/^=cut\s*\n//) {
213 output "\n\n=back\n\n";
221 output "\n\n=back\n\n";
229 ##print "\n\n=back\n\n";
238 my $NEWLINE; # how many newlines have we seen recently
239 my $LINE; # what remains to be printed
242 for (split /(\n)/, shift) {
245 print wrap('', '', $LINE);
253 elsif (/\S/ && length) {