From: Jesse Luehrs Date: Fri, 3 Feb 2012 22:04:20 +0000 (-0600) Subject: package declarations outside of string eval doesn't work on 5.8 X-Git-Tag: 0.07 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FEval-Closure.git;a=commitdiff_plain;h=e6c246fb173b574b731d9993b221d52fb63309f5 package declarations outside of string eval doesn't work on 5.8 --- diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm index ccd2bbc..0fa6aa8 100644 --- a/lib/Eval/Closure.pm +++ b/lib/Eval/Closure.pm @@ -196,12 +196,8 @@ sub _make_compiler { return @{ _clean_eval($source) }; } -$Eval::Closure::SANDBOX_ID = 0; - sub _clean_eval { - $Eval::Closure::SANDBOX_ID++; return eval <