Skip to content

Commit 29f195b

Browse files
gregoabroquaint
authored andcommitted
qw() in list context is an error now
Drop this syntax as it's no longer supported[0] in 5.18. Thanks to gregor herrmann for this patch[1]! [0] http://search.cpan.org/dist/perl-5.18.0/pod/perldelta.pod#qw%28...%29_can_no_longer_be_used_as_parentheses [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711443#10
1 parent 43a3b3b commit 29f195b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

t/00_setup.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use warnings;
44
use Test::More;
55
use Archive::Extract;
66

7-
foreach my $name qw(test-project test-project-packs test-project-packs2 test-encoding) {
7+
foreach my $name (qw(test-project test-project-packs test-project-packs2 test-encoding)) {
88
next if -d $name;
99
my $ae = Archive::Extract->new( archive => "$name.tgz" );
1010
$ae->extract;

t/simple.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use Path::Class;
77

88
my $checkout_directory = dir('t/checkout');
99

10-
foreach my $directory qw(test-project test-project-packs test-project-packs2)
10+
foreach my $directory (qw(test-project test-project-packs test-project-packs2))
1111
{
1212
my $git = Git::PurePerl->new( directory => $directory );
1313
like( $git->master_sha1, qr/^[a-z0-9]{40}$/ );

0 commit comments

Comments
 (0)