Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use warnings;
    ...
        my $res = $ua->request($req);
        my $ref = XMLin($res->content, KeyAttr => "oid");
        foreach my $oid (values %{$ref->{OBJECT}}) {
    
  2. or download this
     my $reference;
                foreach my $entry (@{$oid->{PROPERTY}}) {
                    if ($entry->{name} =~ /^($idName)$/) {
    ...
        exit ($res - 1);
    }
    
  3. or download this
     $VAR1 = {
              'OBJECT' => {
                            'PROPERTY' => [
    ...
            };
    
    Not a HASH reference at ./hp-msa.pl line 19.