From a0e934a667e05d3a8b5556e257938472cd9d6243 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 1 Aug 2011 23:43:45 -0500 Subject: stop compiling stuff in the Eval::Closure package directly --- lib/Eval/Closure.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm index 787754c..45c36b6 100644 --- a/lib/Eval/Closure.pm +++ b/lib/Eval/Closure.pm @@ -202,7 +202,11 @@ sub _clean_eval_closure { unless (exists $compiler_cache{$source}) { local $@; local $SIG{__DIE__}; - my $compiler = eval $source; + my $compiler = do { + package # hide from PAUSE + Eval::Closure::Sandbox; + eval $source; + }; my $e = $@; $compiler_cache{$source} = [ $compiler, $e ]; } -- cgit v1.2.3-54-g00ecf