How to decode JSON in Perl language? -
how decode json in perl language?
my try:
#!/usr/bin/perl use lwp::simple; $web_source = get('https://api.twitter.com/1.1/search/tweets.json'); $decoded_json = decode_json($web_source); print $decoded_json; error:
undefined subroutine &main::decode_json called @ api.pl line 4.
how correct this?
use json; i hope know url trying access wants authorization though.
Comments
Post a Comment