From a1ba082dc5187f5818466ff9767a16edcd99b74c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 5 Jul 2009 19:42:53 +0100 Subject: [PATCH 1/1] compare ::VERSION with 2.0 as that's clearer --- pctb/database-info-fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2