in reply to Re: Re: Re: Can't locate LWP/UserAgent.pm
in thread Can't locate LWP/UserAgent.pm

Thank you for all the suggestions. I'm not an administrator and the server is in a different state, so this is a little beyond my knowledge, but I'm talking to one of the people in charge of the server.

I do have use CGI::Carp 'fatalsToBrowser'; in my script and no errors show up in the browser.

I just like testing it from the command line because that's where I do the programming and it's quick and easy. Also, the system it is on is a replicated distributed file system (using AFS). It replicates to multiple web servers every 15 minutes, so it takes up to 15 minutes for the script to work in my browser when connecting to the web site. I can force it to replicate, but it would just be quicker to test it at the command prompt.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Can't locate LWP/UserAgent.pm
by alienhuman (Pilgrim) on Oct 01, 2003 at 19:03 UTC

    Boy, that is strange. I don't know what would cause fatalsToBrowser not to work--unless of course perl can't find the CGI module.

    It looks like you'll have to stick with running it on the command line. Have you tried changing your path to point to 5.005x version of perl, instead of 5.8? That's probably a good first step.

    Another thing to try is run it using perl -c yourscript.pl. That will show you the compilation errors right at the command line. Once you get those cleared up (by installing missing modules, etc, you'll be in better shape to start testing that script.

    I'd still recommend running it from a browser though--there might be problems that come up when running it from the webserver that don't from the commandline, and vice versa. Also, you avoid spending your time on problems that are not an issue when it's run as a CGI script.

    AH