Subject: | [PATCH] Don't use defined(@array) |
This is deprecated in 5.20, and will be an error in 5.22.
Just checking @array does what you'd expect.
Subject: | 0001-Don-t-use-defined-array.patch |
From e94ad4dd59f7a08881583ed9a3c237808354cdac Mon Sep 17 00:00:00 2001
From: Brian Fraser <fraserbn@gmail.com>
Date: Sun, 3 Aug 2014 23:24:28 +0200
Subject: [PATCH] Don't use defined(@array)
This is deprecated in 5.20, and will be an error in 5.22.
Just checking @array does what you'd expect.
---
t/contents.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/contents.t b/t/contents.t
index f9bb6b4..0eba6f3 100644
--- a/t/contents.t
+++ b/t/contents.t
@@ -28,7 +28,7 @@ sub start
print STDERR "start: $tbl_id\n" if $verbose;
die( "whoops! we're already in the middle of a table!\n" )
- if defined @parse_data;
+ if @parse_data;
@parse_data = ();
}
--
1.7.12.4 (Apple Git-37)