【发布时间】:2013-05-17 10:04:36
【问题描述】:
我发现了很多 Perl 和 JSON 的例子,它们帮助我更好地理解它。
Simple JSON parsing using Perl 的答案中提供的代码很好,在下面我的问题示例中使用。
我在从 HTTPS 链接“获取”JSON 时遇到问题,我不知道为什么。
如果我使用,上面的示例代码对我有用:
"http:..."
作为$trendsurl,但它在模具线上失败(添加$!),与
'Could not get https:... - No such file or directory at json-simple.pl 第 23 行。'
如果我使用
"https:..."
为什么https 会失败,我该如何让它工作?
【问题讨论】: