From: Ian Jackson Date: Sun, 5 Jul 2009 18:42:53 +0000 (+0100) Subject: compare ::VERSION with 2.0 as that's clearer X-Git-Tag: 1.9.3~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.main.git;a=commitdiff_plain;h=a1ba082dc5187f5818466ff9767a16edcd99b74c compare ::VERSION with 2.0 as that's clearer --- 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);