From: Dave Rolsky Date: Sun, 15 May 2011 16:34:46 +0000 (-0500) Subject: Add parens around qw() to avoid warning with 5.14 X-Git-Tag: 2.0008~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=33738ea9aa63e6179f0cab221127799b1d4d369d;p=gitmo%2FMoose.git Add parens around qw() to avoid warning with 5.14 --- diff --git a/t/immutable/buildargs.t b/t/immutable/buildargs.t index 283ed5c..ee9c08c 100644 --- a/t/immutable/buildargs.t +++ b/t/immutable/buildargs.t @@ -28,7 +28,7 @@ use Test::More; __PACKAGE__->meta->make_immutable; } -foreach my $class qw(Foo Bar) { +foreach my $class (qw(Foo Bar)) { is( $class->new->bar, undef, "no args" ); is( $class->new( bar => 42 )->bar, 42, "normal args" ); is( $class->new( 37 )->bar, 37, "single arg" );