LP #941225: Use of qw(...) as parentheses is deprecated at pt-kill line 3511

Description

**Reported in Launchpad by matthew sporleder last update 19-03-2012 16:57:35

I get a bunch of tools giving this warning:

Use of qw(...) as parentheses is deprecated at /usr/pkg/bin/pt-kill line 3511.

and then nothing else works.. I assume because of this?

use warnings FATAL => 'all';

This is perl 5, version 14, subversion 1 (v5.14.1) built for x86_64-netbsd-thread-multi

percona toolkit version: 2.0.3

Environment

None

Smart Checklist

Activity

lpjirasync January 24, 2018 at 1:56 PM

lpjirasync January 24, 2018 at 1:56 PM

**Comment from Launchpad by: Baron Schwartz on: 04-03-2012 23:36:41

BTW, I believe we ought to fix this ASAP because it seems we're experiencing an increasing number of problems that appear only in new versions of Perl, so I suspect people upgrading is starting to accelerate. Marking for 2.0.4.

lpjirasync January 24, 2018 at 1:56 PM

**Comment from Launchpad by: Baron Schwartz on: 04-03-2012 23:35:19

I'd prefer to target this exact bug with its own set of changes.

lpjirasync January 24, 2018 at 1:56 PM

**Comment from Launchpad by: Brian Fraser on: 01-03-2012 23:02:49

Hm. I fixed this a while back along with getting rid of indirect syntax, but that never got into the trunk. Does anyone have a strong opinion against merging that branch? This only affects a handful of tools, so I could make a branch just for this.
In any case, the problem is that we do things like

Transformers->import qw( a b c );

And in older Perls, that sort of just worked, but in 5.14 it was deprecared, since qw() implicitly providing parens was unintended behavior that was getting in the way of things.

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 1:55 PM
Updated January 24, 2018 at 1:56 PM
Resolved January 24, 2018 at 1:56 PM

Flag notifications