uestion headings in perlfaq[1-9] and print the entries matching the regular expression. Example: perldoc -q shuffle =item B<-a> I The B<-a> option followed by the name of a perl api function will extract the documentation of this function from L. Example: perldoc -a newHV =item B<-v> I The B<-v> option followed by the name of a Perl predefined variable will extract the documentation of this variable from L. Examples: perldoc -v '$"' perldoc -v @+ perldoc -v DATA =item B<-T> This specifies that the output is not to be sent to a pager, but is to be sent directly 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 This specifies an option to call the formatter Bith. For example, C<-w textsize:15> will call C<< $formatter->textsize(15) >> on the formatter object before it is used to format the object. For this to be valid, the formatter class must provide such a method, and the value you pass should be valid. (So if C expects an integer, and you do C<-w textsize:big>, expect trouble.) You can use C<-w optionname> (without a value) as shorthand for C<-w optionname:I>. This is presumably useful in cases of on/off features like: C<-w page_numbering>. You can use an "=" instead of the ":", as in: C<-w textsize=15>. This might be more (or less) convenient, depending on what shell you use. =item B<-X> Use an index if it is present. The B<-X> option looks for an entry whose basename matches the name given on the command line in the file C<$Config{archlib}/pod.idx>. The F file should contain fully qualified filenames, one per line. =item B<-L> I This allows one to specify the I for the desired language translation. If the Clanguage_codeE> package isn't installed in your system, the switch is ignored. All available translation packages are to be found under the C namespace. See L (or L) to see how to create new localized C documentation packages and integrate them into L. =item B The item you want to look up. Nested modules (such as C) are specified either as C or C<< File/Basename >>. You may also give a descriptive name of a page, such as C. For URLs, HTTP and HTTPS are the only kind currently supported. For simple names like 'foo', when the normal search fails to find a matching page, a search with the "perl" prefix is tried as well. So "perldoc intro" is enough to find/render "perlintro.pod". =item B<-n> I Specify replacement for groff =item B<-r> Recursive search. =item B<-i> Ignore case. =item B<-V> Displays the version of perldoc you're running. =back =head1 SECURITY Because B does not run properly tainted, and is known to have security issues, when run as the superuser it will attempt to drop privileges by setting the effective and real IDs to nobody's or nouser's account, or -2 if unavailable. If it cannot relinquish its privileges, it will not run. See the C<-U> option if you do not want this behavior but B that there are significant security risks if you choose to use C<-U>. Since 3.26, using C<-F> as the superuser also implies C<-U> as opening most files and traversing directories requires privileges that are above the nobody/nogroup level. =head1 ENVIRONMENT Any switches in the C environment variable will be used before the command line arguments. Useful values for C include C<-oterm>, C<-otext>, C<-ortf>, C<-oxml>, and so on, depending on what modules you have on hand; or the formatter class may be specified exactly with C<-MPod::Perldoc::ToTerm> or the like. C also searches directories specified by the C (or C if C is not defined) and C environment variables. (The latter is so that embedded pods for executables, such as C itself, are available.) In directories where either C or C exist, C will add C<.> and C first to its search path, and as long as you're not the superuser will add C too. This is really helpful if you're working inside of a build directory and want to read through the docs even if you have a version of a module previously installed. C will use, in order of preference, the pager defined in C, C, or C before trying to find a pager on its own. (C is not used if C was told to display plain text or unformatted pod.) When using perldoc in it's C<-m> mode (display module source code), C will attempt to use the pager set in C. A useful setting for this command is your favorite editor as in C. (Don't judge me.) One useful value for C is C. Having PERLDOCDEBUG set to a positive integer will make perldoc emit even more descriptive output than the C<-D> switch does; the higher the number, the more it emits. =head1 CHANGES Up to 3.14_05, the switch B<-v> was used to produce verbose messages of B operation, which is now enabled by B<-D>. =head1 SEE ALSO L, L =head1 AUTHOR Current maintainer: Mark Allen C<< >> Past contributors are: brian d foy C<< >> Adriano R. Ferreira C<< >>, Sean M. Burke C<< >>, Kenneth Albanowski C<< >>, Andy Dougherty C<< >>, and many others. =cut