http://www.perlmonks.org?node_id=1095631


in reply to LWP::UserAgent error Unexpected keys - LocalHost

Sounds like one of the modules used by LWP was updated without having its dependencies updated to the new minimum required version. Could you please provide the output of the following command:
perl -MLWP::UserAgent -e' END { for (keys(%INC)) { s{\.pm\z}{}; s{/}{::}g; printf("%s %s\n", $_, $_->VERSION); } } LWP::UserAgent->new->get("http://www.perlmeme.org") ' | sort

Replies are listed 'Best First'.
Re^2: LWP::UserAgent error Unexpected keys - LocalHost
by trendle (Novice) on Jul 30, 2014 at 18:24 UTC
    Sorry, forgot to reply here.

    FYI, here's the output to the above command.

    Can't call method "VERSION" without a package or object reference at - +e line 6. END failed--call queue aborted. Fcntl 1.06 HTTP::Request::Common 6.00 HTTP::Status 6.00 IO::Handle 1.28 IO::Socket 1.31 LWP::UserAgent 6.06 Net::HTTP 6.07 POSIX 1.17 SelectSaver 1.02 Symbol 1.07 Tie::Hash 1.03 Time::Local 1.2000 URI::_generic warnings 1.06

      Oh, and here's the same from the new ActiveState install

      perl -MLWP::UserAgent -e' END { for (keys(%INC)) { s{\.pm\z}{}; s{/}{::}g; printf("%s %s\n", $_, $_->VERSION); } } LWP::UserAgent->new->get("http://www.perlmeme.org") ' | sort bytes 1.04 Carp 1.32 Compress::Raw::Zlib 2.063 Config constant 1.27 Errno 1.15 Exporter 5.68 Exporter::Heavy 5.68 Fcntl 1.11 feature 1.27 File::Glob 1.17 File::GlobMapper 1.000 HTML::Entities 3.69 HTML::HeadParser 3.71 HTML::Parser 3.71 HTTP::Config 6.00 HTTP::Date 6.02 HTTP::Headers 6.05 HTTP::Message 6.06 HTTP::Request 6.00 HTTP::Request::Common 6.04 HTTP::Response 6.04 HTTP::Status 6.03 integer 1.00 IO 1.25_06 IO::Compress::Base::Common 2.063 IO::Compress::Gzip::Constants 2.063 IO::Compress::Zlib::Extra 2.063 IO::File 1.16 IO::Handle 1.33 IO::Seekable 1.1 IO::Select 1.21 IO::Socket 1.34 IO::Socket::INET 1.33 IO::Socket::UNIX 1.24 IO::Uncompress::Adapter::Inflate 2.063 IO::Uncompress::Base 2.063 IO::Uncompress::Gunzip 2.063 IO::Uncompress::RawInflate 2.063 List::Util 1.35 LWP 6.05 LWP::MemberMixin LWP::Protocol 6.00 LWP::Protocol::http LWP::UserAgent 6.05 Net::HTTP 6.06 Net::HTTP::Methods 6.06 overload 1.18 overloading 0.02 Scalar::Util 1.35 SelectSaver 1.02 Socket 2.013 Storable 2.45 strict 1.07 Symbol 1.07 Time::Local 1.2300 URI 1.60 URI::Escape 3.31 URI::_generic URI::http URI::_idna URI::_punycode 0.04 URI::_query URI::_server utf8 1.09 vars 1.02 warnings 1.13 warnings::register 1.02 XSLoader 0.16
        I got it working with
        IO::Socket::IP 0.31 LWP 6.08 LWP::UserAgent 6.06 Net::HTTP 6.07 Net::HTTP::Methods 6.07

        So get latest of IO::Socket::IP LWP Net::HTTP , at this time  cpanm MSCHILLI/Net-HTTP-6.07.tar.gz PEVANS/IO-Socket-IP-0.31.tar.gz MSCHILLI/libwww-perl-6.08.tar.gz