From b7de67c5bd0907f80fedebf9b6b248d5adae7593 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sat, 19 Aug 2017 16:10:44 +0100 Subject: [PATCH] CssAnimations: keys on scalar is forbidden under perl 5.24 (#4419) --- lib/DDG/Goodie/CssAnimations.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DDG/Goodie/CssAnimations.pm b/lib/DDG/Goodie/CssAnimations.pm index c49249bd5..1582f4e31 100644 --- a/lib/DDG/Goodie/CssAnimations.pm +++ b/lib/DDG/Goodie/CssAnimations.pm @@ -18,7 +18,7 @@ my $animations = LoadFile(share('data.yml')); sub build_response() { - my $demo_count = keys $animations; + my $demo_count = keys %{$animations}; my @result = ();