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

qw() Syntax Errors on 5.17

Thread Next
From:
David E. Wheeler
Date:
May 27, 2012 18:16
Subject:
qw() Syntax Errors on 5.17
Message ID:
AFE1F425-6A7E-4C4D-8A7C-DC0A522F6276@justatheory.com
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:

  http://www.cpantesters.org/cpan/report/150c3114-a728-11e1-8ac9-1d08f4b14d39

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?

Thanks,

David


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About