Rallias

Untitled

Sep 13th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.17 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use JSON;
  4. use LWP::Simple;
  5.  
  6. my $data = decode_json( get("https://data.mtgox.com/api/2/BTCGBP/money/ticker") );
  7.  
  8. print ${$data}{"data"}{"avg"}{"value"};
Advertisement
Add Comment
Please, Sign In to add comment