The code in UserAgent uses the scheme of the http address it wants to access, except when it has to go through a proxy. Then it uses the scheme of the proxy instead.
I'm only making wild guesses now, but your problem could still come from the proxy handling. You might check your environment variables, maybe there is a malformed proxy definition there:
I would also recommend deleting .cpan in your homedir (or roots homedir) and so resetting your configuration of cpan. Since you have these problems with other scripts too, the chance that this will help is not very high but doesn't hurt to try#bash set | grep -i proxy #csh/tcsh printenv | grep -i proxy
You might create a minimal LWP program (just accessing a web page), and use LWP::Debug to create a logfile. Check the logfile or post it here (together with the version of perl you are using).
UPDATE: minor clarification
In reply to Re: Uninitialized $scheme variable in LWP::Protocol and LWP::UserAgent problem
by jethro
in thread Uninitialized $scheme variable in LWP::Protocol and LWP::UserAgent problem
by rogerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |