Subject: | ProhibitLvalueSubstr references version->new() without use'ing version |
I have a script built around Perl::Critic that recently (after upgrading
P::C to 1.116) started reporting the following error:
Couldn't require
Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr : Can't
locate object method "new" via package "version" (perhaps you forgot to
load "version"?) at
/usr/lib/perl5/site_perl/5.8.8/Perl/Critic/Policy/BuiltinFunctions/ProhibitLvalueSubstr.pm
line 26.
Funny thing is, on one machine it gives the error above, on a second
machine with the same version of P::C, it works fine. Either way, the
reality is that ProhibitLvalueSubstr.pm does not "use version", but
tries to instantiate a version object.
--
Randy J. Ray
rjray@blackperl.com
randy.j.ray@gmail.com