Help for this page

Select Code to Download


  1. or download this
    open(srv,"c:/server.txt")|| die "$^E\n";
    chomp ( my @servers =<srv>);
    
  2. or download this
    Foreach my $srv (sort @servers){
       my $ip = Win32::AdminMisc::GetHostAddress($srv);
       print "\nhost: $srv\tIp Address: $ip\n";}