in reply to JSON Parsing error in perl script

Instead of throwing away the contents of STDERR, you should probably capture it using something like Open3 , and examine the contents if you run into an error.

        "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

Replies are listed 'Best First'.
Re^2: JSON Parsing error in perl script
by tobyink (Canon) on Aug 26, 2014 at 14:15 UTC

    Or better yet, use a Perl module like HTTP::Tiny to fetch the JSON instead of spawning an external process. This would allow you to gracefully handle non-200-OK HTTP responses.