X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FCGI%2FEx%2FConf.pm;h=872b113ab81c4c2f3ed6a9219cb47baf2304fc1d;hb=0b04f67c06c1db11969096f07dfc7dbb23bf99ba;hp=f635f201612f8e7babf9f5edf2b11705441e6c49;hpb=ad1be93dffb2b25223fb93cbe2a7d349c6b5c127;p=chaz%2Fp5-CGI-Ex diff --git a/lib/CGI/Ex/Conf.pm b/lib/CGI/Ex/Conf.pm index f635f20..872b113 100644 --- a/lib/CGI/Ex/Conf.pm +++ b/lib/CGI/Ex/Conf.pm @@ -29,7 +29,7 @@ use vars qw($VERSION ); @EXPORT_OK = qw(conf_read conf_write in_cache); -$VERSION = '2.21'; +$VERSION = '2.23'; $DEFAULT_EXT = 'conf'; @@ -262,6 +262,7 @@ sub read_handler_json { open (IN, $file) || die "Couldn't open $file: $!"; CORE::read(IN, my $text, -s $file); close IN; + require JSON; return scalar JSON::jsonToObj($text); }