summaryrefslogtreecommitdiff
path: root/t/lib/strict
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-01-04 11:36:25 +0100
committerNicholas Clark <nick@ccl4.org>2012-01-16 16:26:28 +0100
commit604a99bd464c92d77ef2476ab9779cddb72339c4 (patch)
tree8289c52937791b10d31419cc774048e96c4b1abb /t/lib/strict
parentb880f709320776e295c5359276e8eb7a40ce30c0 (diff)
downloadperl-604a99bd464c92d77ef2476ab9779cddb72339c4.tar.gz
defined(@array) now also warns for package variables.
Diffstat (limited to 't/lib/strict')
-rw-r--r--t/lib/strict/refs2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/lib/strict/refs b/t/lib/strict/refs
index 09b962f71b..d9bff7cd84 100644
--- a/t/lib/strict/refs
+++ b/t/lib/strict/refs
@@ -322,6 +322,8 @@ use strict 'refs';
my $x = "foo";
defined @$x;
EXPECT
+defined(@array) is deprecated at - line 4.
+ (Maybe you should just omit the defined()?)
Can't use string ("foo") as an ARRAY ref while "strict refs" in use at - line 4.
########
# [perl #37886] strict 'refs' doesn't apply inside defined