From: Jesse Luehrs Date: Thu, 21 Oct 2010 05:23:13 +0000 (-0500) Subject: use consistent sorting, so memoization works properly X-Git-Tag: 0.01~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=53b0abc5127b2a28344d9c17caefefcbebbee11b;p=gitmo%2FEval-Closure.git use consistent sorting, so memoization works properly --- diff --git a/lib/Eval/Closure.pm b/lib/Eval/Closure.pm index c563dc3..f463a3b 100644 --- a/lib/Eval/Closure.pm +++ b/lib/Eval/Closure.pm @@ -82,7 +82,7 @@ sub _clean_eval_closure { _dump_source(_make_compiler_source(@_)); } - my @capture_keys = keys %$captures; + my @capture_keys = sort keys %$captures; my ($compiler, $e) = _make_compiler($source, @capture_keys); my $code; if (defined $compiler) {