title: How do I get JSON from HTTPS links in Perl?
body: <p>I have found many examples of Perl and JSON that helped me understand it better.</p>
  
  <p>The code provided in an answer to <em><a href="https://stackoverflow.com/questions/5210523/simple-json-parsing-perl">Simple JSON parsing using Perl</a></em> was good and is used below in the example of my issue.</p>
  
  <p>I am having trouble 'get'-ing JSON from HTTPS links, and I am not sure why.</p>
  
  <p>The above example code works for me if I use:</p>
  
  <pre><code>"http:..."
  </code></pre>
  
  <p>as the <code>$trendsurl</code>, but it fails on the die line (adding <code>$</code>!), with</p>
  
  <blockquote>
    <p>'Could not get https:... - <strong>No such file or directory</strong>  at
    json-simple.pl line 23.'</p>
  </blockquote>
  
  <p>if I use</p>
  
  <pre><code>"https:..."
  </code></pre>
  
  <p>Why does <code>https</code> fail, and how do I get it working?</p>