Skip to content

Commit

Permalink
Fully specify hash reference to find $attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhodgson committed Dec 16, 2015
1 parent 1cf1f9c commit f3233fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_json.pl
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@

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;

Expand Down

0 comments on commit f3233fb

Please sign in to comment.