develooper Front page | perl.perl5.porters | Postings from May 2012

qw() Syntax Errors on 5.17

Thread Next
David E. Wheeler
May 27, 2012 18:16
qw() Syntax Errors on 5.17
Message ID:
Fellow Perlers,

I fixed a bunch of "Use of qw(...) as parentheses is deprecated" warnings in DBIx::Connector a while ago, so was surprised to get some new test failures on 5.17 yesterday:

The errors are:

> syntax error at t/run.t line 148, near "$mode qw(ping no_ping fixup)"
> Global symbol "$mode" requires explicit package name at t/run.t line 149.
> syntax error at t/run.t line 153, near "}"

Sure enough, I don't have the parens there. Good, except: Why don't 5.14 or 5.16 warn on those? Maybe there are some cases that the warnings miss but are properly caught as invalid syntax in 5.17?



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About