From a2b28cba965e41052af1387e8a172533e9294ec5 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Fri, 25 Aug 2017 18:13:58 +0100 Subject: [PATCH] AltCalendars: keys on ref is fatal under perl 5.24 (#4418) --- lib/DDG/Goodie/AltCalendars.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/AltCalendars.pm b/lib/DDG/Goodie/AltCalendars.pm index 71327f29502..7e1c8636028 100755 --- a/lib/DDG/Goodie/AltCalendars.pm +++ b/lib/DDG/Goodie/AltCalendars.pm @@ -15,7 +15,7 @@ my $year_definitions = decode_json($definitions_json); my %year_map_with_aliases = map { my $name = $_; map { $_ => $name } ($name, @{$year_definitions->{$name}->{'aliases'} // []}) -} (keys $year_definitions); +} (keys %{$year_definitions}); triggers any => keys %year_map_with_aliases;