Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

json return value

by stenasc (Novice)
on Jul 11, 2013 at 08:25 UTC ( [id://1043651]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    print $q->header("application/json");
    print $json->encode({ c => $c });
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
    
    my $result = $json->decode( $ua->request($req)->decoded_content );
    print $result->{c}, "\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1043651]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found