Closed andk closed 9 years ago
The "Constants from lexical variables potentially modified elsewhere are deprecated" warning may also affect other modules with nowarnings-like tests (seen with TOBYINK/Role-Inspector-0.005.tar.gz, for example).
Fixed in c00b048, which looks strange, though. In fact, I believe this is a bug in Perl.
I would say Perl is just too dumb to recognize that $xs is not changed after using in the constant generation.
I should have used constant.pm to define constant subroutines :(
Can we have a CPAN release with this fix? There is a number of CPAN modules which have fail reports because of this warning in Mouse, e.g. https://rt.cpan.org/Ticket/Display.html?id=101085
As per subject. Sample PASS report with the warnings:
http://www.cpantesters.org/cpan/report/48501326
Related bleadperl ticket: https://rt.perl.org/rt3/Ticket/Display.html?id=123213
HTH&&Thanks, (Disclaimer: this was discovered by statistical analysis, I'm not speaking as a user)