This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Suppress a warning in kvhslice.t
authorFather Chrysostomos <sprout@cpan.org>
Sun, 8 Sep 2013 20:53:23 +0000 (13:53 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 13 Sep 2013 08:25:35 +0000 (01:25 -0700)
The bugginess of the ‘Scalar value better written as...’ warning
applies to %new{silce} syntax, too.

t/op/kvhslice.t

index 2b34497..9d23a95 100644 (file)
@@ -79,6 +79,7 @@ plan tests => 39;
 
 # ref of a slice produces list
 {
+    no warnings 'syntax';
     my %h = map { $_ => uc $_ } 'a'..'z';
     my @a = \%h{ qw'c d e' };