From 33f89799d9328f3d175aa913900d16794119e284 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 17 Jan 2012 13:29:56 +0100 Subject: Avoid 'defined(@array) is deprecated' warnings in tests. Commit 604a99bd464c92d7 enabled the warning for package arrays, but failed to lexically disable the warning for the various tests for the construction. Even though the construction is deprecated, we'd still like to know if the behaviour changes, in case it wasn't intentional. --- t/op/gv.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't/op/gv.t') diff --git a/t/op/gv.t b/t/op/gv.t index 798cc731e3..e2eae33099 100644 --- a/t/op/gv.t +++ b/t/op/gv.t @@ -192,7 +192,10 @@ is (*{*x{GLOB}}, "*main::STDOUT"); my $a = "SYM000"; ok(!defined *{$a}); - ok(!defined @{$a}); + { + no warnings 'deprecated'; + ok(!defined @{$a}); + } ok(!defined *{$a}); { -- cgit v1.2.1