Help for this page

Select Code to Download


  1. or download this
    use SNMP;
    use Net::MAC;
    my $ip_address : shared= "";
    my $pool : shared = 0;
    my $nthreads = 10; # Number of threads in pool
    
  2. or download this
     
    foreach (1..$nthreads) {
        threads->create(\&getIP);
    }
    
  3. or download this
    foreach $ip (@ip_addresses) {
    
    ...
    
    
    }
    
  4. or download this
    sub getIP {
    
    ...
    }
    }