in reply to How read ICMP UDP port unreachable?
use Net::Ping; $p = Net::Ping->new("udp"); print "$host is alive.\n" if $p->ping($host); $p->close(); [download]
-Mark