Help for this page

Select Code to Download


  1. or download this
    return encode_json(\%result) if lc($attrs{'format'}) eq 'json';
    
  2. or download this
    lc($attrs{'format'}) eq 'json' and return encode_json(\%result);
    
  3. or download this
    open(my $fh, '<', $file) or die "error opening '$file': $!";
    
  4. or download this
    return encode_json(\%result) if lc($attrs{'format'}) eq 'json';
    return $result{'message'} or "$result{'api-key'}:$result{'session'}";