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.
=head1 OPTIONS
=over 5
=item B help
Prints out a brief help message.
=item B verbose
Describes search for the item in detail.
=item B text output
Display docs using plain text converter, instead of nroff. This may be faster,
but it won't look as nice.
=item B unformatted
Find docs only; skip reformatting by pod2*
=item B module
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 file name only
Display the file name of the module found.
=item B file names
Consider arguments as file names, no search in directories will be performed.
=item B perlfunc
The B option followed by the name of a perl built in function will
extract the documentation of this function from L.
=item B perlfaq
The B option takes a regular expression as an argument. It will search
the question headings in perlfaq[1-9] and print the entries matching
the regular expression.
=item B use an index if present
The B option looks for a entry whose basename matches the name given on the
command line in the file C. The pod.idx file should
contain fully qualified filenames, one per line.
=item B run insecurely
Because B does not run properly tainted, and is known to
have security issues, it will not normally execute as the superuser.
If you use the B flag, it will do so, but only after setting
the effective and real IDs to nobody's or nouser's account, or -2
if unavailable. If it cannot relinguish its privileges, it will not
run.
=item B
The item you want to look up. Nested modules (such as C)
are specified either as C or C. You may also
give a descriptive name of a page, such as C. You may also give a
partial or wrong-case name, such as "basename" for "File::Basename", but
this will be slower, if there is more then one page with the same partial
name, you will only get the first one.
=back
=head1 ENVIRONMENT
Any switches in the C environment variable will be used before the
command line arguments. 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.) 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.)
One useful value for C is C.
=head1 VERSION
This is perldoc v2.01.
=head1 AUTHOR
Kenneth Albanowski
Minor updates by Andy Dougherty ,
and others.
=cut
#
# Version 2.02: Mon Mar 13 18:03:04 MST 2000
# Tom Christiansen
# Added -U insecurity option
# Version 2.01: Sat Mar 11 15:22:33 MST 2000
# Tom Christiansen , querulously.
# Security and correctness patches.
# What a twisted bit of distasteful spaghetti code.
# Version 2.0: ????
# Version 1.15: Tue Aug 24 01:50:20 EST 1999
# Charles Wilson
# changed /pod/ directory to /pods/ for cygwin
# to support cygwin/win32
# Version 1.14: Wed Jul 15 01:50:20 EST 1998
# Robin Barker
# -strict, -w cleanups
# Version 1.13: Fri Feb 27 16:20:50 EST 1997
# Gurusamy Sarathy
# -doc tweaks for -F and -X options
# Version 1.12: Sat Apr 12 22:41:09 EST 1997
# Gurusamy Sarathy
# -various fixes for win32
# Version 1.11: Tue Dec 26 09:54:33 EST 1995
# Kenneth Albanowski
# -added Charles Bailey's further VMS patches, and -u switch
# -added -t switch, with pod2text support
#
# Version 1.10: Thu Nov 9 07:23:47 EST 1995
# Kenneth Albanowski
# -added VMS support
# -added better error recognition (on no found pages, just exit. On
# missing nroff/pod2man, just display raw pod.)
# -added recursive/case-insensitive matching (thanks, Andreas). This
# slows things down a bit, unfortunately. Give a precise name, and
# it'll run faster.
#
# Version 1.01: Tue May 30 14:47:34 EDT 1995
# Andy Dougherty
# -added pod documentation.
# -added PATH searching.
# -added searching pod/ subdirectory (mainly to pick up perlfunc.pod
# and friends.
#
#
# TODO:
#
# Cache directories read during sloppy match
!NO!SUBS!
close OUT or die "Can't close $file: $!";
chmod 0755, $file or die "Can't reset permissions for $file: $!\n";
exec("$Config{'eunicefix'} $file") if $Config{'eunicefix'} ne ':';
chdir $origdir;