Re: utils/perldoc.Com vs utils/perldoc

"Craig A. Berry" <[email protected]> Thu, 19 Sep 2013 22:29:37 -0500
Newsgroups gmane.comp.lang.perl.ports.vms
Message-ID <[email protected]>
On Sep 19, 2013, at 1:36 PM, Nicholas Clark <[email protected]> wrote:

> So, my question is, surely that file should be installed as
> "utils/perldoc.COM" not "utils/perldoc"?

Yes.

> And if so, where in ExtUtils::MakeMaker does it need fixing?

Good question.  ExtUtils::MakeMaker::MM_Unix::installbin says:

=3Ditem installbin (o)

Defines targets to make and to install EXE_FILES.

but I think it's lying.  It doesn't seem to "make" anything at all but =
mostly copies files into place after fiddling with the shebang line.  I =
think there is also some special handling if it finds POD in the file.  =
I suppose the file copy line in there should append .com if it's not =
already present.

> (Does anyone on VMS actually install modules from CPAN that have =
scripts?)

Probably rarely.  And installing it wouldn't let you run it =
automatically anyway unless you happen to put perl_root:[utils] into =
DCL$PATH.  The reason you had it still looking for perldoc.com even =
after you deleted that file is because there is a foreign command for =
perldoc defined in perl_setup.com (more or less like an alias as John =
said).


________________________________________
Craig A. Berry
mailto:[email protected]

"... getting out of a sonnet is much more
 difficult than getting in."
                 Brad Leithauser