Let's keep this on the list, so if others run into the same problem, they can benefit. Also, it's a good exercise in debugging.
On 4/30/2004 12:21 AM, Fungii wrote:
----- Original Message ----- From: "Randy W. Sims" <[EMAIL PROTECTED]>
Cc: "Fungii" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 29, 2004 7:19 PM
Subject: Re: Perldoc on Win98
** snip**
1) Install Pod::Perldoc, the new replacement for the older perldoc.
Ok, I did that.
-or-
1) What is the exact error message? 2) What is the output for 'perldoc -v perldoc'? 3) What happens with: 'perldoc -u perldoc' or 'perldoc -t perldoc'?
It won't let me pipe output to a file, but using the verbose switch it gives me:
******************************************
[a bunch of searching stuff]
Found as D:\Perl\site\lib\perldoc.pod About to try calling more< C:\windows\temp/perldoc_perldocT......txt
Bad command or file name. Considering whether any old files of mine in C:\windows\temp need unlinking. Unlinked 0 items of mine in C:\windows\temp
******************************************
I looked in C:\windows\temp and found the text file it refers to above. Looking inside, it appears to have all the pod info! So cool, we're making progress. Now, I'm thinking the problem is with the forward slash between temp and perldoc...txt in that line, I need a backslash there for Windows to recognize the path. So, I'm not sure what to do now...
Time to do some debugging. Starting with a peek inside 'perldoc': hmm, I see that you can set PERLDOCDEBUG in the environment to get some more verbose output. Try:
set PERLDOCDEBUG=1 perldoc -v perldoc
Look at the output and use it to guide you closer to the error. You'll have to peek inside the source files for Pod::Perldoc. You can probably just do a search thru the sources for the message above "About to try calling". Don't be afraid to put a few print statements in their and otherwise modify the code to try to find and fix the problem. Just make sure you back it up first. For example
cd D:\perl\site\lib\Pod\ copy Perldoc.pm Perldoc.pm.orig attrib -r Perldoc.pm edit Perldoc.pm
If you get it to work, make a diff of the changes:
diff -u Perldoc.pm.orig Perldoc.pm > C:\Perldoc.patch
and send it to Sean. Also let us know.
If you can't find & fix the problem, post what info you can glean and we'll see where it leads. I don't have Win98, so we may may have to go back and forth a bit to find the problem.
Randy.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>