then foreach item in the list get the Ip address.open(srv,"c:/server.txt")|| die "$^E\n"; chomp ( my @servers =<srv>);
Cheers,...BlackadderForeach my $srv (sort @servers){ my $ip = Win32::AdminMisc::GetHostAddress($srv); print "\nhost: $srv\tIp Address: $ip\n";}
In reply to Re: Re: Pinging.
by blackadder
in thread Pinging.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |