diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-02-09 09:27:05 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-02-09 09:27:05 -0600 |
commit | 01a39ce32493babc0f5f751878f4381b46340203 (patch) | |
tree | 53fea80367669892d4d36dfb1b818952ddd9699d /lib | |
parent | f17874752539cabec9eacfb725606aa411e77b5f (diff) | |
download | eval-closure-01a39ce32493babc0f5f751878f4381b46340203.tar.gz eval-closure-01a39ce32493babc0f5f751878f4381b46340203.zip |
the double eval isn't necessary anymore
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Eval/Closure.pm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm index 0fa6aa8..161bcdf 100644 --- a/lib/Eval/Closure.pm +++ b/lib/Eval/Closure.pm @@ -197,13 +197,11 @@ sub _make_compiler { } sub _clean_eval { - return eval <<EVAL; -local \$@; -local \$SIG{__DIE__}; -my \$compiler = eval \$_[0]; -my \$e = \$@; -[ \$compiler, \$e ]; -EVAL + local $@; + local $SIG{__DIE__}; + my $compiler = eval $_[0]; + my $e = $@; + [ $compiler, $e ]; } $Eval::Closure::SANDBOX_ID = 0; |