title: Trouble With Parsing JSON with Perl
body: <p>I have a JSON file and I'm trying to parse it in Perl.  So far I have:</p>
  
  <pre><code>use strict;
  use warnings;
  use JSON;
  
  open my $fh, "/Users/arjunnayini/Desktop/map_data.json";   
  
  
  my @decoded_json = @{decode_json($fh)};
  </code></pre>
  
  <p>But I am getting an error that I have a:
  "malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "GLOB(0x100804ed0)") "</p>
  
  <p>I'm fairly certain that the JSON file is formatted properly, so I'm not sure where this is going wrong.  Any suggestions?</p>