I'm having some trouble with a JSON file that I'm opening from a weblink. I've adapted my code from what i used to open local kml files so the problem could be a different way perl handles json or opening online files...?
'$input{place}' comes from my html forms
$inputname = $input{place};
$sjson ="http://api.geonames.org/searchJSON?q=$inputname&maxRows=1&username=rsgs";
open INPUT, "<$sjson";
$sjsoncont.=<INPUT>;
close INPUT;
When I test by printing $sjsoncont it is empty? Why?