BernieC has asked for the wisdom of the Perl Monks concerning the following question:

in the course of *something* I did in messing with trying to get Courriel installed working has broken perldoc. I never really knew how it worked but what I get now is:
D:\www>perldoc -f splice Content-type: text/html; charset=US-ascii Content-length: 248 <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Perl docum +entation</title></head> <frameset cols="25%, 75%"> <frame name="tocFrame" src="/toc"> <frame name="contentFrame" src="/perl"> </frameset> </html>
I cannot imagine what/how I broke it. I must've deleted something it needed by mistake.. my perl directory is backed up, so I can restore it if i/we/y'all can figure out what is missing THANKS

Replies are listed 'Best First'.
Re: perldoc is broken
by Corion (Patriarch) on Jan 11, 2022 at 16:29 UTC

    First, I would look at which perldoc program is actually run:

    which perldoc

    Something, somewhere maybe installed a program with the same name that is supposed to run as CGI...

    As a second step, look at %ENV - maybe perldoc behaves as CGI if some HTTP environment headers are set. Anything starting with HTTP_ is suspect. Under Windows, you can see %ENV using the set command.

      Thanks for the advice. It seemed to be OK and so something subtle must've been screwed up, so I took the coward's way out: I restored the *entire* c:\Strawberry hierarchy from the backup of a few days ago and the problem has gone away. The joy of backups.

        The joy of backups.

        Indeed, but if it happens again, and is convenient to debug please post again.