http://qs321.pair.com?node_id=348801


in reply to Ping a Server

my $IP=&resolve('Server'); print "$IP\n"; sub resolve(){ my $check=join('.',(unpack("C4", gethostbyname($_[0])))); return $check; }