*alexandre* has asked for the wisdom of the Perl Monks concerning the following question:
it's print : root@vps8279:/usr/lib/cgi-bin# perl libra_test.pl { "balance": 999000000 } what I need is just the result : 999000000 thx#!/usr/bin/perl use warnings; use Shell; use JSON; main(); sub get_balance { my $test = libra("account balance f270b16e2fec7a10937d0c32eec34a9b +2280a7ab8a64e75aa8c84e3583158349"); print "$test"; } sub main { get_balance(); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: format json response
by haukex (Archbishop) on Oct 29, 2019 at 13:48 UTC | |
Re: format json response
by 1nickt (Canon) on Oct 29, 2019 at 13:55 UTC | |
by *alexandre* (Scribe) on Oct 29, 2019 at 15:11 UTC |