in reply to Perl script not working with JSON module

The error does not say line 193, it says character 193. The problem with the file is near the beginning.

Dum Spiro Spero
  • Comment on Re: Perl script not working with JSON module

Replies are listed 'Best First'.
Re^2: Perl script not working with JSON module
by Anonymous Monk on Jul 23, 2015 at 13:56 UTC
    He's parsing each line of the file as a separate JSON chunk, so the problem could be anywhere. Add print ">$line<\n" before the decode.