X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fdatabase-info-fetch;fp=pctb%2Fdatabase-info-fetch;h=3b8db77c4209b05f9537b34f29e744a354d1b855;hb=a1ba082dc5187f5818466ff9767a16edcd99b74c;hp=d3619caba4b3f15b70c219cc8b46e5b7a986c4d2;hpb=4172802be80063ded4208231cf9fc2acdc35784b;p=ypp-sc-tools.main.git diff --git a/pctb/database-info-fetch b/pctb/database-info-fetch index d3619ca..3b8db77 100755 --- a/pctb/database-info-fetch +++ b/pctb/database-info-fetch @@ -72,7 +72,7 @@ sub json_convert_shim ($) { my ($json) = @_; # In JSON.pm 2.x, jsonToObj prints a warning to stderr which # our callers don't like at all. - if ($JSON::VERSION >= 2) { + if ($JSON::VERSION >= 2.0) { return from_json($json); } else { return jsonToObj($json);