I had the same issue in this line . The changing $url variable helped me.
Check yours one and try once again.
Check yours one and try once again.
print $res."\n\n";
use warnings; $regexes[0] = 'i:stat.in:FastEthernet0/1*'; $regexes[1] = '';
JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at ./lld_all_graph.pl line 63
$json = $json->allow_nonref([$enable])
syntax error at ./lld_all_graph.pl line 20, near ") # load a json string from a file sub loadjson " syntax error at ./lld_all_graph.pl line 33, near "$result }" syntax error at ./lld_all_graph.pl line 51, near "}" syntax error at ./lld_all_graph.pl line 69, near "}" syntax error at ./lld_all_graph.pl line 94, near "$dec_out }" syntax error at ./lld_all_graph.pl line 128, near "}" syntax error at ./lld_all_graph.pl line 161, near "$dec_out }" syntax error at ./lld_all_graph.pl line 198, near "}" syntax error at ./lld_all_graph.pl line 235, near "}" syntax error at ./lld_all_graph.pl line 266, near "}" ./lld_all_graph.pl has too many errors.
JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this) at ./lld_all_graph.pl line 63
$json = $json->allow_nonref([$enable])
syntax error at ./lld_all_graph.pl line 20, near ") # load a json string from a file sub loadjson " syntax error at ./lld_all_graph.pl line 33, near "$result }" syntax error at ./lld_all_graph.pl line 51, near "}" syntax error at ./lld_all_graph.pl line 69, near "}" syntax error at ./lld_all_graph.pl line 94, near "$dec_out }" syntax error at ./lld_all_graph.pl line 128, near "}" syntax error at ./lld_all_graph.pl line 161, near "$dec_out }" syntax error at ./lld_all_graph.pl line 198, near "}" syntax error at ./lld_all_graph.pl line 235, near "}" syntax error at ./lld_all_graph.pl line 266, near "}" ./lld_all_graph.pl has too many errors.

Comment