Help for this page

Select Code to Download


  1. or download this
    foreach my $ip (@IPsinrange) {
      for my $host_obj ($np->all_hosts()) {
        if ($host_obj->ipv4_addr() eq $ip) {
          foreach my $port (@ports) {
    
  2. or download this
    my %IPsinrange = map {$_=>1} @IPsinrange;
    for my $host_obj ($np->all_hosts()) {
      next unless $IPsinrange{$host_obj->ipv4_addr()};
      for my $port (@ports) {