rogerd has asked for the wisdom of the Perl Monks concerning the following question:
Hello, maybe my problem is trivial, but I cannot find an answer. I will try to explain you what is going on.
The simplest problem to explain is when I try to download a module using cpan. I always get the error:
Fetching with LWP: ftp://mirrors.localhost.net.ar/pub/mirrors/CPAN/authors/id/whatever Use of uninitialized value in hash element at /Library/Perl/5.8.6/LWP/ +Protocol.pm line 53. Use of uninitialized value in pattern match (m//) at /Library/Perl/5.8 +.6/LWP/Protocol.pm line 56. Use of uninitialized value in concatenation (.) or string at /Library/ +Perl/5.8.6/LWP/Protocol.pm line 36. Use of uninitialized value in string eq at /Library/Perl/5.8.6/LWP/Use +rAgent.pm line 199.
The extracted lines where the errors come from are:
Protocol.pm line 53 my $ic = $ImplementedBy{$scheme}; line 56 return '' unless $scheme =~ /^([.+\-\w]+)$/; # check valid + URL schemes line 36 my $impclass = LWP::Protocol::implementor($scheme) or UserAgent.pm line 199 if ($scheme eq "https") {
So, it seems that I have a problem with the assignement of a value to the variable $scheme. Other scripts that use LWP::UserAgent and LWP::Protocol give me the same type of errors, but I write down more explicitely the problem with the cpan modules because they should be more familiar for you.
All I could find about $scheme had something to do with setting or using proxies, is that true? I have no proxies set in my configuration, or they have been assigned automatically by my ISP, I don't know about that.
So, some questions arise: what can I do to solve that problem? Where I can find more information? Where I should start reading? What is that $scheme variable?
Thank you in advance for your help.
Roger
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uninitialized $scheme variable in LWP::Protocol and LWP::UserAgent problem
by jethro (Monsignor) on Jul 27, 2008 at 13:59 UTC | |
by rogerd (Sexton) on Jul 27, 2008 at 15:38 UTC | |
|
Re: Uninitialized $scheme variable in LWP::Protocol and LWP::UserAgent problem
by Anonymous Monk on Jul 27, 2008 at 13:03 UTC | |
by MidLifeXis (Monsignor) on Jul 27, 2008 at 13:21 UTC | |
|
Re: Uninitialized $scheme variable in LWP::Protocol and LWP::UserAgent problem
by Anonymous Monk on Jul 27, 2008 at 13:09 UTC | |
by rogerd (Sexton) on Jul 27, 2008 at 13:16 UTC |