On 2015-10-22 13:29:53, SKINGTON wrote:
Show quoted text> In perl 5.23.4, lexical $_ is a compile error, so
> is $@, "";
> fails.
>
> This test should be skipped in perl 5.23.4 and above.
Patch attached.
From a803baa3a29996c1466f7e215eac1f56ee5c1e50 Mon Sep 17 00:00:00 2001
From: Slaven Rezic <slaven@rezic.de>
Date: Sat, 31 Oct 2015 21:24:30 +0100
Subject: [PATCH] no lexical $_ with perl 5.23.4 and later (RT #107927)
---
t/defsv.t | 1 +
1 file changed, 1 insertion(+)
diff --git a/t/defsv.t b/t/defsv.t
index 4f3cab2..749431a 100644
--- a/t/defsv.t
+++ b/t/defsv.t
@@ -14,6 +14,7 @@ SKIP: {
is $retval, "t::context_0 return";
SKIP: {
skip "no lexical \$_ on this perl", 2 if "$]" < 5.009001;
+ skip "no lexical \$_ on this perl", 2 if "$]" >= 5.023004;
eval q{
no warnings "$]" >= 5.017009 ? "experimental" :
"deprecated";
--
2.1.2