in reply to Re^3: JSON to HASH
in thread JSON to HASH
which gives me a one-liner $json_string (that i was trying to make a %hash with $key{$value} with. thanx, let me fiddle with your suggestionsub ServerData { $GSD_JSON = do { open (JSONDATA, "<:encoding(UTF-8)", "/HTTPS/prinet\.org/\.dat +a\.settings"); local $/; <JSONDATA> }; close (JSONDATA); $GSD_Handle = JSON->new; return ($GSD_Handle->decode($GSD_JSON)); }
|
|---|