in reply to Re^9: JSON::XS and blessings
in thread JSON::XS and blessings

Thanks! It was a great idea to compare the %INC of the two virtual servers. I did, and unfortunately they are identical. %INC in both has about 350 keys, and the outputs including version numbers are identical.

And yes, I restarted apache several times while debugging this.

Back to the original problem: my understanding is that decode_json('{"a":true}')returns a ref to a hash with key 'a' and value true which isa JSON:PP:Boolean. If there a way to print attributes of decode_json('{"a":true}')->{a} such that I can compare them between the two servers?

Replies are listed 'Best First'.
Re^11: JSON::XS and blessings
by Anonymous Monk on Oct 16, 2015 at 02:50 UTC
    %INC is supposed to contain paths :)
      This is an excerpt from the running the script:

      Module: Apache2/Response.pm; Path: /usr/lib/perl5/Apache2/Response.pm; + Size: 10086; VERSION: 2.000008 Module: Apache2/ServerUtil.pm; Path: /usr/lib/perl5/Apache2/ServerUtil +.pm; Size: 22344; VERSION: 2.000008 Module: Apache2/XSLoader.pm; Path: /usr/lib/perl5/Apache2/XSLoader.pm; + Size: 1153; VERSION: Module: AutoLoader.pm; Path: /usr/share/perl/5.18/AutoLoader.pm; Size: + 5487; VERSION: 5.73 Module: B.pm; Path: /usr/lib/perl/5.18/B.pm; Size: 27972; VERSION: 1.4 +2_02 Module: B/Hooks/EndOfScope.pm; Path: /usr/local/share/perl/5.18.2/B/Ho +oks/EndOfScope.pm; Size: 3956; VERSION: 0.15 Module: B/Hooks/EndOfScope/XS.pm; Path: /usr/local/share/perl/5.18.2/B +/Hooks/EndOfScope/XS.pm; Size: 2618; VERSION: 0.15 Module: CGI.pm; Path: /usr/local/share/perl/5.18.2/CGI.pm; Size: 12339 +5; VERSION: 4.15