gohaku wrote:
> On Apr 9, 2004, at 6:27 AM, Randal L. Schwartz wrote:
> 
> > Yes, and the instructions are included with your copy of Perl,
> > in "perldoc perlmodinstall".
> 
> What if perldoc is not included for some reason?

perldoc may be installed, but not in your PATH. Perl comes with a number of
programs, including perldoc, a2p, s2p, perlbug, etc. in addition to the perl
interpreter itself.

The installation process will place those programs in the "scriptdir", which
defaults to ${PREFIX}/bin. So if your prefix is /usr/local, perldoc will go
to /usr/local/bin/perldoc. But if your prefix is /usr/local/perl, then
perldoc will be /usr/local/perl/bin/perldoc.

(Modules you install from CPAN will sometimes place programs in this
directory. For instance, the LWP module puts GET, HEAD, and POST scripts
there.)

The installation process then links the perl interpreter to the "canonical
location", /usr/bin/perl.

/usr/bin is almost always in your PATH, so you can typically find perl
itself. However, the scriptdir may not be in the PATH, meaning perldoc would
not be found.

You can find the location where perldoc "should" be by entering the command:

   $ perl -V:scriptdir
   scriptdir='/usr/local/bin';

If perldoc is in that directory, you can either specifiy the full path to
perldoc, add the directory to your PATH, or create a link somewhere.

If perldoc is not in that directory, your perl installation should be
considered broken, and the problem should be corrected before you do
anything further.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to