Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    foreach my $line($data) {
        print "$line\n";
    }
    
  2. or download this
    my $content = `curl --silent -k -u admin:pass https://url/api/v2/GetDe
    +viceInfo?$ARGV[0]`;
    $content =~ tr/"/ /;
    $content =~ tr/,/\n/;
    print "$content\n";
    
  3. or download this
    "device":[{ host_info: { engine_id: null
    name: null
    ...
    remarks: null
    id: 0}
    ...
    
  4. or download this
    "device": [{
           "host_info": {
    ...
                   }
           }
                   ...