Я пытаюсь проанализировать результаты Graph API JSON, и у меня с ним немного проблемы.
То, что я надеялся сделать, это напечатать количество акций:
my $trendsurl = "https://graph.facebook.com/?ids=http://www.filestube.com";
my $json;
{
local $/; #enable slurp
open my $fh, "<", $trendsurl;
$json = <$fh>;
}
my $decoded_json = @{decode_json{shares}};
print $decoded_json;