From 4e3bf34027567183336f95153ae94019c468c701 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 15 Oct 2012 01:13:18 -0500 Subject: this weaken is unnecessary --- lib/Text/Handlebars.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Text/Handlebars.pm b/lib/Text/Handlebars.pm index 2e4770f..6fed7a7 100644 --- a/lib/Text/Handlebars.pm +++ b/lib/Text/Handlebars.pm @@ -138,12 +138,11 @@ sub default_functions { } if (ref($value) eq 'HASH') { - weaken(my $vars_copy = $vars); return { '@index' => $i, %$vars, %$value, - '..' => $vars_copy, + '..' => $vars, }; } else { -- cgit v1.2.3