Thank you very much Roderich. Your answer is useful as always!
* Sorry the typo * Yes, on my Linux box (perl 5.14) works. * scandeps is more useful than http://deps.cpantesters.org/?module=LWP%3A%3AUserAgent&perl=5.10&os=any+OS Peco 2012/8/16 Roderich Schupp <roderich.sch...@googlemail.com> > Hi, > > sorry the delayed reply. > > On Wed, Aug 15, 2012 at 9:39 AM, Juan José 'Peco' San Martín > <jsanmar...@gmail.com> wrote: > > > I've created the next sample.pl file > > I can't reproduce the problem here (after correcting a typo and adding > "use LWP::UserAgent"), > Perl 5.16 on Linux, Module::ScanDeps 1.08 (that's the module used by PAR > to > determine dependencies). > > > CPAN doesn't show the > > dependency< > http://deps.cpantesters.org/?module=LWP%3A%3AUserAgent&perl=5.16.1&os=any+OS > >between > > LWP::UserAgent and Net::SSL but it seems to exist. > > It's not obvious. When encountering the "https" scheme in a get() or > similar, > LWP::UserAgent loads the module LWP::Protocol::https at runtime. > This module has in its META.yml: > > requires: > IO::Socket::SSL: 1.54 > Mozilla::CA: 20110101 > Net::HTTPS: 6 > > Module::ScanDeps doesn't use that information though, but uses some > heuristic rule: if you see "LWP::UserAgent", add all LWP::Protocol::* > modules on your machine to dependencies (and their dependencies etc). > You can verify this (using Unix command syntax) > > $ scandeps.pl sample.pl | perl -ne "print if /LWP|Net/" > 'HTTP::Cookies::Netscape' => '6.00', > 'Net::SSLeay' => '1.48', > 'LWP' => '6.04', > 'LWP::MediaTypes' => '6.02', > 'Net::HTTP' => '6.03', > 'LWP::Protocol' => '6.00', > 'Net::HTTPS' => '6.02', > 'LWP::Debug' => 'undef', > 'Net::LDAP' => '0.44', > 'Net::LDAP::LDIF' => '0.18', > 'LWP::ConnCache' => '6.02', > 'LWP::MemberMixin' => 'undef', > 'Net::HTTP::Methods' => '6.00', > 'Net::SSL' => '2.85', > 'Net::LDAP::Bind' => '1.03', > 'Net::LDAP::Extension' => '1.02', > 'Net::LDAP::RootDSE' => '0.01', > 'Net::LDAP::Schema' => '0.9905', > 'Net::LDAP::Search' => '0.13', > 'Net::LDAP::Entry' => '0.24', > 'Net::LDAP::ASN' => '0.08', > 'Net::LDAP::Constant' => '0.14', > 'Net::LDAP::Filter' => '0.16', > 'Net::LDAP::Message' => '1.11', > 'Net::LDAP::Util' => '0.12', > 'Net::LDAP::Control' => '0.12', > 'Net::LDAP::Intermediate' => '0.02', > 'LWP::UserAgent' => '6.04', > 'LWP::Authen::Basic' => 'undef', > 'LWP::Protocol::http' => 'undef', > 'LWP::Protocol::ldap' => '1.11', > 'LWP::Authen::Digest' => 'undef', > 'LWP::Authen::Ntlm' => '6.00', > 'LWP::Authen::Wsse' => '0.05', > 'LWP::Protocol::GHTTP' => 'undef', > 'LWP::Protocol::cpan' => 'undef', > 'LWP::Protocol::data' => 'undef', > 'LWP::Protocol::file' => 'undef', > 'LWP::Protocol::ftp' => 'undef', > 'LWP::Protocol::gopher' => 'undef', > 'LWP::Protocol::https' => '6.03', > 'LWP::Protocol::ldaps' => 'undef', > 'LWP::Protocol::loopback' => 'undef', > 'LWP::Protocol::mailto' => 'undef', > 'LWP::Protocol::nntp' => 'undef', > 'LWP::Protocol::nogo' => 'undef', > > Cheers, Roderich >