From 6f1ed77258bb2e868db9f4bc877f120ea8d814f6 Mon Sep 17 00:00:00 2001 From: Olivier Mengué Date: Thu, 31 Mar 2016 22:13:05 +0200 Subject: Remove unneeded sort We don't need to sort capture keys as long as we keep the same order during the whole process which is the case with the @capture_keys variable. --- 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 dbe6ea1..51a6c00 100644 --- a/lib/Eval/Closure.pm +++ b/lib/Eval/Closure.pm @@ -193,7 +193,7 @@ sub _line_directive { sub _clean_eval_closure { my ($source, $captures, $alias) = @_; - my @capture_keys = sort keys %$captures; + my @capture_keys = keys %$captures; if ($ENV{EVAL_CLOSURE_PRINT_SOURCE}) { _dump_source(_make_compiler_source($source, $alias, @capture_keys)); -- cgit v1.2.3-54-g00ecf