X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FEval%2FClosure.pm;h=45c36b691e86c37b0bed112d3d1cc91d02b95bec;hb=a0e934a667e05d3a8b5556e257938472cd9d6243;hp=787754c7e79681ead9991cff42391f9d6be89eac;hpb=7fdc514fb2d9768b3d38d078cf24d9d03403539b;p=gitmo%2FEval-Closure.git 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 ]; }