Help for this page

Select Code to Download


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