=head1 NAME
perldoc - Look up Perl documentation in Pod format.
=head1 SYNOPSIS
B [B<-h>] [B<-v>] [B<-t>] [B<-u>] [B<-m>] [B<-l>] [B<-F>]
[B<-i>] [B<-V>] [B<-T>] [B<-r>]
[B<-dI>]
[B<-oI>]
[B<-MI>]
[B<-wI>]
[B<-n>I]
[B<-X>]
[B<-L> I]
PageName|ModuleName|ProgramName
B B<-f> BuiltinFunction
B B<-L> it B<-f> BuiltinFunction
B B<-q> FAQ Keyword
B B<-L> fr B<-q> FAQ Keyword
See below for more description of the switches.
=head1 DESCRIPTION
I looks up a piece of documentation in .pod format that is embedded
in the perl installation tree or in a perl script, and displays it via
C. (In addition, if running under HP-UX,
C
will be used.) This is primarily used for the documentation for
the perl library modules.
Your system may also have man pages installed for those modules, in
which case you can probably just use the man(1) command.
If you are looking for a table of contents to the Perl library modules
documentation, see the L page.
=head1 OPTIONS
=over 5
=item B<-h>
Prints out a brief Belp message.
=item B<-v>
Describes search for the item in detail (Berbosely).
=item B<-t>
Display docs using plain Bext converter, instead of nroff. This may be faster,
but it probably won't look as nice.
=item B<-u>
Skip the real Pod formatting, and just show the raw Pod source (Bnformatted)
=item B<-m> I
Display the entire module: both code and unformatted pod documentation.
This may be useful if the docs don't explain a function in the detail
you need, and you'd like to inspect the code directly; perldoc will find
the file for you and simply hand it off for display.
=item B<-l>
Display onBy the file name of the module found.
=item B<-F>
Consider arguments as file names; no search in directories will be performed.
=item B<-f> I
The B<-f> option followed by the name of a perl built in function will
extract the documentation of this function from L.
Example:
perldoc -f sprintf
=item B<-q> I
The B<-q> option takes a regular expression as an argument. It will search
the Buestion headings in perlfaq[1-9] and print the entries matching
the regular expression. Example: C
=item B<-T>
This specifies that the output is not to be sent to a pager, but is to
be sent right to STDOUT.
=item B<-d> I
This specifies that the output is to be sent neither to a pager nor
to STDOUT, but is to be saved to the specified filename. Example:
C
=item B<-o> I
This specifies that you want Perldoc to try using a Pod-formatting
class for the output format that you specify. For example:
C<-oman>. This is actually just a wrapper around the C<-M> switch;
using C<-oI> just looks for a loadable class by adding
that format name (with different capitalizations) to the end of
different classname prefixes.
For example, C<-oLaTeX> currently tries all of the following classes:
Pod::Perldoc::ToLaTeX Pod::Perldoc::Tolatex Pod::Perldoc::ToLatex
Pod::Perldoc::ToLATEX Pod::Simple::LaTeX Pod::Simple::latex
Pod::Simple::Latex Pod::Simple::LATEX Pod::LaTeX Pod::latex Pod::Latex
Pod::LATEX.
=item B<-M> I
This specifies the module that you want to try using for formatting the
pod. The class must at least provide a C method.
For example: C.
You can specify several classes to try by joining them with commas
or semicolons, as in C<-MTk::SuperPod;Tk::Pod>.
=item B<-w> I or B<-w> I