From 53b0abc5127b2a28344d9c17caefefcbebbee11b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 21 Oct 2010 00:23:13 -0500 Subject: use consistent sorting, so memoization works properly --- lib/Eval/Closure.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3-54-g00ecf