This is really strange. The command line cpan client does not seem to see a new version of a module while the CPAN shell does.
C:\>cpan namespace::autoclean
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Sat, 15 Dec 2012 08:49:58 GMT
CPAN: Module::CoreList loaded ok (v2.78)
namespace::autoclean is up to date (0.12).
C:\>cpan
cpan shell -- CPAN exploration and modules installation (v1.9751)
Enter 'h' for help.
cpan> i /^namespace::au/
Database was generated on Sat, 15 Dec 2012 08:49:58 GMT
Bundle namespace::autoclean (BOBTFISH/namespace-autoclean-0.13.ta
+r.gz)
Module = namespace::autoclean (BOBTFISH/namespace-autoclean-0.13.ta
+r.gz)
2 items found
cpan> q
Lockfile removed.
C:\>mversion namespace::autoclean
0.12
C:\>cpan namespace::autoclean
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Sat, 15 Dec 2012 08:49:58 GMT
CPAN: Module::CoreList loaded ok (v2.78)
namespace::autoclean is up to date (0.12).
C:\>cpan --version
C:\strawberry\perl\bin/cpan version 1.57 calling Getopt::Std::getopts
+(version 1.06 [paranoid]),
running under Perl version 5.12.3.
[Now continuing due to backward compatibility and excessive paranoia
+.
See ``perldoc Getopt::Std'' about $Getopt::Std::STANDARD_HELP_VERSI
+ON.]
Nothing to install!
Strawberry Perl 5.12.3 32bit
The same happened with a number of other modules.
For Template I could install it by running "install Template" inside the CPAN shell, for namespace::autoclean I had to type: "install BOBTFISH/namespace-autoclean-0.13.tar.gz"
Currently this is the set of modules that refuse to upgrad via the cpan script.
Warning: prerequisite Class::C3::Componentised 1.001000 not found. We
+have 1.0009.
Warning: prerequisite Exporter::Declare 0.105 not found. We have 0.103
+.
Warning: prerequisite File::ShareDir::Install 0.04 not found. We have
+0.03.
Warning: prerequisite HTML::Lint 2.10 not found.
Warning: prerequisite HTML::Template 2.9 not found. We have 2.10.
Warning: prerequisite IO::TieCombine 1.001 not found. We have 1.000.
Warning: prerequisite List::MoreUtils 0.33 not found. We have 0.32.
Warning: prerequisite Log::Contextual 0.004001 not found. We have 0.00
+304.
Warning: prerequisite Log::Log4perl 1.35 not found. We have 1.33.
Warning: prerequisite MIME::Types 1.34 not found. We have 1.31.
Warning: prerequisite MetaCPAN::API 0.43 not found.
Warning: prerequisite Modern::Perl 1.20120130 not found. We have 1.03.
Warning: prerequisite Module::Install::ReadmeFromPod 0.16 not found.
Warning: prerequisite Module::Refresh 0.17 not found. We have 0.16.
Warning: prerequisite Module::ScanDeps 1.07 not found. We have 1.02.
Warning: prerequisite MooseX::Role::Parameterized 1.00 not found. We h
+ave 0.26.
Warning: prerequisite MooseX::SetOnce 0.200001 not found. We have 0.20
+0000.
Warning: prerequisite MooseX::Singleton 0.29 not found. We have 0.27.
Warning: prerequisite MooseX::StrictConstructor 0.19 not found. We hav
+e 0.16.
Warning: prerequisite MooseX::Types::Perl 0.101341 not found. We have
+0.101340.
Warning: prerequisite POE 1.350 not found. We have 1.311.
Warning: prerequisite POE::Test::Loops 1.350 not found. We have 1.312.
Warning: prerequisite Package::Stash::XS 0.25 not found. We have 0.22.
Warning: prerequisite Params::Validate 1.05 not found. We have 1.00.
Warning: prerequisite Pod::Coverage 0.22 not found. We have 0.21.
Warning: prerequisite SQL::Translator 0.11010 not found. We have 0.110
+08.
Warning: prerequisite Scope::Upper 0.18 not found. We have 0.14.
Warning: prerequisite Test::Reporter 1.58 not found. We have 1.57.
Warning: prerequisite Test::SharedFork 0.19 not found. We have 0.16.
Warning: prerequisite Test::TCP 1.15 not found. We have 1.13.
Warning: prerequisite Try::Tiny 0.11 not found. We have 0.09.
Any idea why and how to solve this?
Update
Just to clarify, most of the modules I tried, I could install with the command line cpan client, but not these.