- or download this
use JSON;
...
print "$body->{timeout}\n"; #<-----suspect line
my $body_string = to_json($body);
print "$body_string";
- or download this
Output:
2000
{"timeout":"2000"}
- or download this
use JSON;
...
$body->{"timeout"} = (defined $params->{timeout}?$params->{timeout} :
+3000);
my $body_string = to_json($body);
print "$body_string";
- or download this
Output:
{"timeout":2000}