perl-POE/POE-1.367-Corrected-previou...

31 lines
848 B
Diff

From cf5b772fa54e0cda0e447c33ce351f1e6c074d42 Mon Sep 17 00:00:00 2001
From: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
Date: Tue, 29 Oct 2019 10:09:52 +0000
Subject: [PATCH] Corrected previous commit as per tonyc's suggestion
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
lib/POE/Kernel.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/POE/Kernel.pm b/lib/POE/Kernel.pm
index 2d7e4008..27781f94 100644
--- a/lib/POE/Kernel.pm
+++ b/lib/POE/Kernel.pm
@@ -365,7 +365,8 @@ BEGIN {
no strict 'refs';
local $^W = 0;
local $SIG{__WARN__} = sub { }; # redefine
- *$const = sub () { return $value };
+ my $tmp = $value;
+ *$const = sub () { $tmp };
}
# TRACE_FILENAME is special.
--
2.21.1