Subject: | Use the Readonly or Const::Fast module when comparing with Some::Module::VERSION |
1.4 is not one of the allowed literal values (0, 1, 2). Use the Readonly
or Const::Fast module or the "constant" pragma
in the line:
my $meta_coder = ($JSON::XS::VERSION >= 1.4) ?
JSON::XS->new->utf8->max_depth(1)->max_size(MAX_SIZE) : # some
additional abuse-protection
JSON::XS->new->utf8; # it's still protected by length checking below
(i.e. when I have to work around different behavious of older version of
modules).
I think maybe it's possible to detect $Some::Module::VERSION in the
comparsion.