defined @array and defined %hash need no warnings 'deprecated';
authorNicholas Clark <nick@ccl4.org>
Tue, 13 Oct 2009 14:33:16 +0000 (15:33 +0100)
committerJesse Vincent <jesse@bestpractical.com>
Fri, 16 Oct 2009 16:30:16 +0000 (12:30 -0400)
t/op/undef.t

index 8bfecab..7afaf9c 100644 (file)
@@ -72,6 +72,7 @@ like $@, qr/^Modification of a read/;
 {
     require Tie::Hash;
     tie my %foo, 'Tie::StdHash';
+    no warnings 'deprecated';
     ok defined %foo;
     %foo = ( a => 1 );
     ok defined %foo;
@@ -80,6 +81,7 @@ like $@, qr/^Modification of a read/;
 {
     require Tie::Array;
     tie my @foo, 'Tie::StdArray';
+    no warnings 'deprecated';
     ok defined @foo;
     @foo = ( a => 1 );
     ok defined @foo;