Help for this page

Select Code to Download


  1. or download this
    %ServerStatus = ();
    foreach my $i (0..$num) {
      $ServerStatus{$Ip[$i]} = [$Names[$i], 'unknown'];
    }
    
  2. or download this
    %ServerStatus = map {($Ip[$_], [$Names[$_], 'unknown'])} 0..$num;