From 2e8e5194939a3d801e53efa5b6f99467830382f2 Mon Sep 17 00:00:00 2001 From: Christopher Kreft Date: Mon, 15 Aug 2016 13:40:22 +0200 Subject: [PATCH] Revert "Fully specify hash reference to find $attribute." This reverts commit f3233fb247099a6072397f13c007f22a9aa00826. --- check_json.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_json.pl b/check_json.pl index f2cd564..fb253c9 100755 --- a/check_json.pl +++ b/check_json.pl @@ -151,8 +151,8 @@ my $resultTmp; foreach my $attribute (sort keys %attributes){ my $check_value; - my $check_value_str = '$check_value = $json_response->{\'' . $attribute . '\'}'; - + my $check_value_str = '$check_value = $json_response->'.$attribute; + if ($np->opts->verbose) { (print Dumper ($check_value_str))}; eval $check_value_str;