Subject: | Fails to override version of Attribute::Params::Validate leftover from Params-Validate 1.20 or earlier |
$ cpan-outdated --verbose
Attribute::Params::Validate 1.20 1.21 D/DR/DROLSKY/Attribute-Params-Validate-1.21.tar.gz
$ perl -MAttribute::Params::Validate -E'say $Attribute::Params::Validate::VERSION'
1.20
However Attribute::Params::Validate 1.21 is installed. The problem is that I had Params-Validate 1.20 installed, which installed to the *arch* directory, which comes before the non-arch directory in @INC. Attribute-Params-Validate 1.21 however installed Attribute::Params::Validate to the non-arch directory. So the old Attribute::Params::Validate in the arch directory is getting loaded first. The solution is to manually remove the old file but maybe there is an automatic way to fix this problem.