);
@EXPORT_OK = qw(conf_read conf_write in_cache);
-$VERSION = '2.16';
+$VERSION = '2.24';
$DEFAULT_EXT = 'conf';
### don't die if the file is not found - do die otherwise
if (! -e $file) {
- eval { die "Conf file $file not found" };
+ eval { die "Conf file $file not found\n" };
warn "Conf file $file not found" if ! $args->{'no_warn_on_fail'} && ! $NO_WARN_ON_FAIL;
return;
}
open (IN, $file) || die "Couldn't open $file: $!";
CORE::read(IN, my $text, -s $file);
close IN;
+ require JSON;
return scalar JSON::jsonToObj($text);
}