in reply to Re: Perl script not working with JSON module
in thread Perl script not working with JSON module

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.