Do you know where your variables are? | |
PerlMonks |
JSON::XS and blessingsby cshavit (Novice) |
on Oct 13, 2015 at 19:41 UTC ( [id://1144744]=perlquestion: print w/replies, xml ) | Need Help?? |
cshavit has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I have perl code running on apache. And the weirdest problem.
Consider this code snippet:
You'd expect $e to equal $json. And if you ran it from a shell, it would be true. I have two apache virtual hosts, running by the same Apache server on Ubunto. One of the servers always runs the code correctly. The other always dies on encode_json() with "encountered object '1', but neither allow_blessed, convert_blessed nor allow_tags settings are enabled (or TO_JSON/FREEZE method missing)"The problem does not happen if I use JSON::PP. Could you please help me with fixing it? Even a hint. Thanks!
Back to
Seekers of Perl Wisdom
|
|