hopefully this helps...sub reachable { (@machines_to_ping) = @_; $host = Net::Ping->new(); foreach (@machines_to_ping){ $reachable = $host->ping($_); if ($reach == 1){ print "$_ reachable\n"; } else { print "$_ not reachable\n"; } } }
In reply to Re: Re: Problems with Ping
by magnus
in thread Problems with Ping
by magnus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |